process: Avoid stealing pclose()'s exit status.
authorBen Pfaff <blp@nicira.com>
Wed, 21 Jan 2009 00:06:59 +0000 (16:06 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 21 Jan 2009 00:45:22 +0000 (16:45 -0800)
commit20167fb74e6cb8f172289cf97c995d531c2a9187
treebc793caf000081dc933c8c1403960115708893d1
parent854e4ee087143f432412d9e0775fd15a7758307d
process: Avoid stealing pclose()'s exit status.

When we use popen() and pclose(), pclose() wants to return the process's
exit status, but it can't if the SIGCHLD handler gets it first.  So,
instead of asking for any child process exit status in sigchld_handler(),
only ask for the exit status of registered PIDs.
lib/process.c