]> granicus.if.org Git - sudo/commit
In term_restore(), only restores the terminal if we are in the
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 5 Feb 2014 19:03:58 +0000 (12:03 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 5 Feb 2014 19:03:58 +0000 (12:03 -0700)
commit135c85e1528e9ba41cb8d26ceb390926b39b76c1
tree1d91505b8343d2eb35d2ae4989086091ebfbc309
parent85598f77b23b2002b8eef43eaef100d0735c5405
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().
common/term.c
src/exec_pty.c