[sudo-commits] sudo changeset 7538:4fe0f357d34b

Todd C. Miller Todd.Miller at courtesan.com
Wed Jan 4 13:07:17 EST 2012


changeset:	7538:4fe0f357d34b in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/4fe0f357d34b
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Wed Jan 04 12:57:06 2012 -0500

Log Message:
	Handle different Unix domain socket (actually socketpair) semantics
	in BSD vs. Linux.  In BSD if one end of the socketpair goes away
	select() returns the fd as readable and the read will fail with
	ECONNRESET.  This doesn't appear to happen on Linux so if we notice
	that the monitor process has died when I/O logging is enabled,
	behave like the command has exited.  This means we log the wait
	status of the monitor, not the command, but there is nothing else
	we can do at that point.  This should only be an issue if SIGKILL
	is sent to the monitor process.

diffstat:

 src/exec.c |  59 ++++++++++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 46 insertions(+), 13 deletions(-)



More information about the sudo-commits mailing list