2 ms·
On Linux you can also use prctl with PR_SET_PDEATHSIG to set a signal that will be sent to all child processes when the parent dies. This is a syscall you'd nee
by eikenberry 7y ago
On Linux you can also use prctl with PR_SET_PDEATHSIG to set a signal that will be sent to all child processes when the parent dies. This is a syscall you'd need to make from in the program. See 'man 2 prctl'.