[sudo-commits] sudo changeset 7972:26c9fe8ce0f9
Todd C. Miller
Todd.Miller at courtesan.com
Fri Apr 6 12:45:36 EDT 2012
changeset: 7972:26c9fe8ce0f9 in /home/hg/sudo
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Fri Apr 06 12:45:30 2012 -0400
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.
src/exec_pty.c | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
More information about the sudo-commits