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
I think a quick and dirty way is to create a pipe between child and parent. When parent exits, children will receive a SIGPIPE.