Reintroduce "Stop reaping children from SIGCHLD handler"

This re-introduces 3fe10692199fc20a5f4b6ac5057cce43babc5f36
with some associated fixes to address #1768.