Block SIGCHLD around the `fork' call to prevent a race.