in reply to parenticide...
If you need to have the parent do some processing, the parent could do the killing in a SIG{CHLD} handler. You would need to worry about race conditions since the killed children will produce CHLD signals.
BTW, I think your code doesn't work because kill() sends the signal to process group when the signal is negative, not the process id. The documentation says that negative process numbers only work on SysV-based systems.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: parenticide...
by jca (Sexton) on Nov 28, 2002 at 10:02 UTC |