Killing clones

Richard Gooch (rgooch@atnf.CSIRO.AU)
Sun, 10 Aug 1997 22:43:08 +1000


Hi, all. I make heavy use of the clone syscall in a number of
applications, and everything works well except when the parent process
dies (say from a SEGV or a call to abort). The problem is the cloned
processes hang around until I manually kill them. I note that there
seems to be a mechanism to choose which signal is sent to the parent
if a child dies (CSIGNAL mask), but not the other way around.
Is there a solution to this problem? I tried cloning the PID but that
stuffs up sending signals to the clones.

Regards,

Richard....