When you are forking processes, is there an easy way for a child to check up on the status of it's parent process? Something equivelant to the reverse of the SIG{CHLD} handler used with waitpid().
In my child's code, I'm reading data from a socket using accept() and of course that is blocking (hence the reason why I'm forking the code). If my parent dies, I have no way of checking it (like using ps) until I get more data (which might be a very long time).