|
|
|
|
|
by adrusi
987 days ago
|
|
I had a hell of a time a few months ago debugging why my child processes were dying, before learning that PDEATHSIG=9 (don't ask) kills child processes when the thread that created them in the parent process exits. My debugging was not aided by the fact that disabling the code where I set PDEATHSIG had no effect, since someone else's code was invisibly setting it regardless. |
|
Related to this is the double-fork pattern to avoid zombie processes (and a couple other issues) when initiating a daemon process.