Whitespace: child.ml

$ camlp4o -printer o -no_comments src/child.ml | md5sum
b62ae1dd0cfc3094711f1bdfc6e1fa76  -
$ git checkout HEAD^
$ camlp4o -printer o -no_comments src/child.ml | md5sum
b62ae1dd0cfc3094711f1bdfc6e1fa76  -

Signed-off-by: John Else <john.else@citrix.com>
fe: remove redundant special case

We haven't been logging *any* zero exits for a while, so there's no
longer any need to filter out zero exits of ISOSR specifically.

Signed-off-by: John Else <john.else@citrix.com>
CA-140545: Cause child fe to exit after client calls dontwaitpid

Once the required command has been forked, instead of making a blocking
waitpid call to catch the command's exit, we now first make a
nonblocking call to check that the command is still running, and then
set up a signal handler to catch SIGCHLD and report the command's exit
code. This is all done with SIGCHLD temporarily blocked to avoid a race.

Once the signal handler is set up, the main thread waits for the client
to send the new Dontwaitpid command over the socket - once received, the
child fe knows that the command's exit code is no longer needed by the
client, and thus fe can exit. The command will continue to run in the
background, if it is still running.

Signed-off-by: John Else <john.else@citrix.com>
Merge pull request #3 from johnelse/ca-140545

CA-140545: Cause child fe to exit after client calls dontwaitpid