]> granicus.if.org Git - sudo/commit
Fix compressed io log corruption in background mode by using _exit()
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 4 Jun 2011 14:01:39 +0000 (10:01 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 4 Jun 2011 14:01:39 +0000 (10:01 -0400)
commitf58ae7712fde255d69640e46a5d0cecb607826e3
tree6bee11176e7331d3ff9db0033e863950d336771d
parent61205cf09f1518152a6a61850a94e052c69bb04a
parent3c9e5f28fc8ba0f14dde2f4c0ddecff0555c8d05
Fix compressed io log corruption in background mode by using _exit()
instead of exit() to avoid flushing buffers twice.

Improved background mode support.  When not allocating a pty, the
command is run in its own process group.  This prevents write access
to the tty.  When running in a pty, stdin is not hooked up and we
never read from /dev/tty, which results in similar behavior.

--HG--
branch : 1.8