]> granicus.if.org Git - sudo/commitdiff
The change in 4fe0f357d34b that caused to exit when the monitor
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 25 Jan 2012 21:29:56 +0000 (16:29 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 25 Jan 2012 21:29:56 +0000 (16:29 -0500)
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.

--HG--
branch : 1.8


Trivial merge