Handle SIGCHLD interrupts in more places.

Resolves #194.