[sudo-commits] sudo changeset 7697:7fb5b30ea48d
Todd C. Miller
Todd.Miller at courtesan.com
Wed Jan 25 16:29:15 EST 2012
changeset: 7697:7fb5b30ea48d in /home/hg/sudo
details: http://www.sudo.ws/repos/sudo/rev/7fb5b30ea48d
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Wed Jan 25 16:29:08 2012 -0500
Log Message:
The change in 818e82ecbbfc 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.
diffstat:
src/exec.c | 20 +++++++-------------
src/sudo.c | 10 ++++++----
2 files changed, 13 insertions(+), 17 deletions(-)
More information about the sudo-commits
mailing list