From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19276 invoked by alias); 30 Apr 2004 13:56:59 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 19244 invoked from network); 30 Apr 2004 13:56:55 -0000 Received: from unknown (HELO NUTMEG.CAM.ARTIMI.COM) (217.40.111.177) by sources.redhat.com with SMTP; 30 Apr 2004 13:56:55 -0000 Received: from mace ([192.168.1.25]) by NUTMEG.CAM.ARTIMI.COM with Microsoft SMTPSVC(6.0.3790.0); Fri, 30 Apr 2004 14:55:21 +0100 From: "Dave Korn" To: Subject: RE: signal issue Date: Fri, 30 Apr 2004 14:12:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <1083331690.4092546adbbaf@www-eleves.enib.fr> Message-ID: X-OriginalArrivalTime: 30 Apr 2004 13:55:21.0093 (UTC) FILETIME=[C703DB50:01C42EBA] X-SW-Source: 2004-04/txt/msg01243.txt.bz2 > -----Original Message----- > From: cygwin-owner On Behalf Of crenouli > Sent: 30 April 2004 14:28 > I try to kill a process under cygwin. The main process need > to kill one its > child process. The child process is playing a music using : > system("cat phrase3.wav > /dev/dsp "); > > The main process code is (pidChild is correst) : > kill(SIGKILL, pidChild); > > I tried with SIGUSR2 (with a function associated to the > SIGUSR2 signal) : same > result. > > The opposite is working (child process sending a SIGURS1 to > its father - the > father receive the signal and call the matching function). > > Does cygwin has a problem to recieve a signal when a problem > a process is busy > (command system) ? system (...) invokes a shell to execute the command you supplied as a child process. The shell then invokes cat as a child process of its own. So what probably happened is you killed the shell but left the cat program still running. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/