[sudo-commits] sudo changeset 7648:a1e7e31519ec

Todd C. Miller Todd.Miller at courtesan.com
Thu Jan 12 16:46:04 EST 2012


changeset:	7648:a1e7e31519ec in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/a1e7e31519ec
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Thu Jan 12 14:54:18 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:

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



More information about the sudo-commits mailing list