[sudo-commits] sudo changeset 7699:16c1a3da35c6

Todd C. Miller Todd.Miller at courtesan.com
Wed Jan 25 16:50:01 EST 2012

changeset:	7699:16c1a3da35c6 in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/16c1a3da35c6
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Wed Jan 25 16:29:56 2012 -0500

Log Message:
	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.


 src/exec.c |  20 +++++++-------------
 src/sudo.c |  10 ++++++----
 2 files changed, 13 insertions(+), 17 deletions(-)

More information about the sudo-commits mailing list