]> granicus.if.org Git - sudo/commit
Handle different Unix domain socket (actually socketpair) semantics
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 4 Jan 2012 17:57:06 +0000 (12:57 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 4 Jan 2012 17:57:06 +0000 (12:57 -0500)
commiteb65be29b73ebe65cd78e800a530953894e275ad
tree01902521f75e8ab241d322a1c659e58aeed6ae53
parentcc1463dd1f4a3ba00162f730b82debccbae1fc9d
parent98c77b5b96ffa72786e9448770204ae700145c16
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.

--HG--
branch : 1.8