]> granicus.if.org Git - sudo/commit
When execve() of the command fails, it is possible to receive SIGCHLD
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 20 May 2010 11:33:14 +0000 (07:33 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 20 May 2010 11:33:14 +0000 (07:33 -0400)
commitf8ff268318970ac86c9ee813f3fed61dc332f995
tree8ac5a24299269e5726c8a6c661943786e6b2c042
parentd2b8bad2a59e47708f73f0b670e69ae0ae4d8b3a
When execve() of the command fails, it is possible to receive SIGCHLD
before we've read the error status from the pipe.  Re-order things
such that we send the final status at the very end and prefer error
status over wait status.
src/script.c