Suppose I have a process which spawns exactly one child process. Now when the parent process exits for whatever reason (normally or abnormally, by kill, ^C, assert failure o
This solution worked for me:
This was for a worker-type process whose existence only made sense when the parent was alive.