[sudo-commits] sudo changeset 10154:78a625eca3f2
Todd C. Miller
Todd.Miller at courtesan.com
Thu Jul 23 07:47:50 MDT 2015
changeset: 10154:78a625eca3f2 in /media/repos/sudo
details: http://www.sudo.ws/repos/sudo/rev/78a625eca3f2
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Thu Jul 23 07:46:25 2015 -0600
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:
exec_pty.c | 24 +++---------
term.c | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++---------
2 files changed, 101 insertions(+), 35 deletions(-)
More information about the sudo-commits
mailing list