Notify the parent when the child has exec'ed

Notify the parent when the child has called exec by using a pair of file
descripts with the "close on exec" flag set.

socketpair() was used for possible bidirectional communication in the
future. The socket is only monitored by the parent for EOF right now.