www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/30/09:57:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Dave Korn" <dk AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: signal issue
Date: Fri, 30 Apr 2004 14:55:21 +0100
MIME-Version: 1.0
In-Reply-To: <1083331690.4092546adbbaf@www-eleves.enib.fr>
Message-ID: <NUTMEG9g3EnIKv8r6zH00000101@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 30 Apr 2004 13:55:21.0093 (UTC) FILETIME=[C703DB50:01C42EBA]

> -----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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019