signal issue

2004-05-03 Thread Christian Renoulin
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 as

signal issue

2004-05-04 Thread Christian Renoulin
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 as

kill does not work under windows

2004-06-07 Thread Christian Renoulin
Hi, This small program is working well launched under cygwin, but does nothing as it's launched under windows command line. Why ? #include # use (if the process 1019 is in progress) : killer 1019 int main(int argc, char **argv) { char temp[200]; sprintf(temp, "kill -9 %s", argv[1]);