]> granicus.if.org Git - sudo/commit
The change in 818e82ecbbfc that caused to exit when the monitor
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 25 Jan 2012 21:29:08 +0000 (16:29 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 25 Jan 2012 21:29:08 +0000 (16:29 -0500)
commit1877c455d1f2683b64fe71e262e2aeba539a773e
treea594cd913c6d4627102972630a5cfe0fc4d26f09
parentd11e7febbcf5a83cc581fc565c7049a2ed67fd69
The change in 818e82ecbbfc that caused to exit when the monitor
dies created a race condition between the monitor exiting and the
status being read.  All we really want to do is make sure that
select() notifies us that there is a status change when the monitor
dies unexpectedly so shutdown the socketpair connected to the monitor
for writing when it dies.  That way we can still read the status
that is pending on the socket and select() on Linux will tell us
that the fd is ready.
src/exec.c
src/sudo.c