From: Todd C. Miller Date: Wed, 25 Jan 2012 21:29:56 +0000 (-0500) Subject: The change in 4fe0f357d34b that caused to exit when the monitor X-Git-Tag: SUDO_1_8_4~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03816c1c176d473a4a6fb9be34e6346b006b0573;p=sudo The change in 4fe0f357d34b 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. --HG-- branch : 1.8 --- 03816c1c176d473a4a6fb9be34e6346b006b0573