Handle Waitpid returning early

GDB breakpoints causes waitpid to return early with EINTR
<http://sourceware.org/gdb/onlinedocs/gdb/Interrupted-System-Calls.html>
if this is not caught, the program crashes.
Receive notifications of children stop/terminations