[sudo-commits] sudo changeset 7698:71d927a3cf2d

Todd C. Miller Todd.Miller at courtesan.com
Wed Jan 25 16:33:22 EST 2012


changeset:	7698:71d927a3cf2d in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/71d927a3cf2d
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Wed Jan 25 16:33:15 2012 -0500

Log Message:
	The change in a1e7e31519ec 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.

diffstat:

 exec.c |  22 ++++++++--------------
 1 files changed, 8 insertions(+), 14 deletions(-)



More information about the sudo-commits mailing list