[sudo-commits] sudo changeset 8124:c19c375498c2
Todd C. Miller
Todd.Miller at courtesan.com
Tue May 29 16:31:48 EDT 2012
changeset: 8124:c19c375498c2 in /home/hg/sudo
details: http://www.sudo.ws/repos/sudo/rev/c19c375498c2
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Wed May 23 14:21:07 2012 -0400
Log Message:
Ignore SIGTTIN and SIGTTOU in main sudo process when I/O logging.
It is better to receive EIO from read()/write() than to be suspended
when we don't expect it. Fixes a problem when our terminal is
revoked which can happen when, e.g. our sshd is killed unceremoniously.
Also, only change the value of "alive" from true to false, never
from false to true. It is possible for us to receive notification
of the child having stopped after it is already dead. This does
not mean it has risen from the grave.
diffstat:
exec_pty.c | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
More information about the sudo-commits
mailing list