[sudo-commits] sudo changeset 9309:94979d51daa2
Todd C. Miller
Todd.Miller at courtesan.com
Wed Feb 5 12:41:26 MST 2014
changeset: 9309:94979d51daa2 in /home/hg/sudo
details: http://www.sudo.ws/repos/sudo/rev/94979d51daa2
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Wed Feb 05 12:03:58 2014 -0700
Log Message:
In term_restore(), only restores the terminal if we are in the
foregroup process group. Instead of calling tcgetpgrp(), which is
racy, we set a temporary handler for SIGTTOU and check whether it
was received after a failed call to tcsetattr().
diffstat:
common/term.c | 71 +++++++++++++++++++++++++++++++++++++++++++++++++--------
src/exec_pty.c | 14 +++--------
2 files changed, 64 insertions(+), 21 deletions(-)
More information about the sudo-commits
mailing list