[sudo-commits] sudo changeset 7446:818e82ecbbfc
Todd C. Miller
Todd.Miller at courtesan.com
Thu Dec 8 11:26:23 EST 2011
changeset: 7446:818e82ecbbfc in /home/hg/sudo
details: http://www.sudo.ws/repos/sudo/rev/818e82ecbbfc
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Thu Dec 08 11:18:38 2011 -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