in reply to Child process dies
There's presumably a communication channel (a pipe?) between the parent and the child. You could periodically check the status of the communication channel.
If your communication channel is a pipe, then all you have to do is suicide when you receive a SIGPIPE signal. I think that might even be the default action! (This won't work in Windows.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Child process dies
by johngg (Canon) on Jan 05, 2007 at 15:51 UTC | |
by polettix (Vicar) on Jan 05, 2007 at 19:41 UTC | |
by johngg (Canon) on Jan 05, 2007 at 20:11 UTC | |
by polettix (Vicar) on Jan 05, 2007 at 23:58 UTC | |
|
Re^2: Child process dies
by sgifford (Prior) on Jan 06, 2007 at 01:33 UTC |