]> granicus.if.org Git - sudo/commit
Defer setting terminal into raw mode until just before we fork()
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 25 Oct 2009 14:55:14 +0000 (14:55 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 25 Oct 2009 14:55:14 +0000 (14:55 +0000)
commite62dd7645f85acf7bfc9f8112c9c22c2d1ccf2df
tree98ddff45fb5586a30878b35143448d733f8d8110
parentc77ef16fcd73b89433fe1287f1cf0ad0f9a1ebe3
Defer setting terminal into raw mode until just before we fork()
and only do it if sudo is the foreground process.
If we get SIGTT{IN,OU} and sudo is already in the foreground be sure
to set raw mode before continuing the child.
script.c