in reply to Re^2: automatically killing all child processes created in a script
in thread automatically killing all child processes created in a script
And if you cannot record the pid of a grandchild process, there's always a way for the grandchild to distance itself from the family tree. Double forking will leave its parent PID to be 1, so there's no way to find it by tracing the process tree. And it can escape from a process group.
|
|---|