]> granicus.if.org Git - sudo/commit
Don't wait for child to finish in log_error(), let the signal handler
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 19 Aug 1999 17:45:36 +0000 (17:45 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 19 Aug 1999 17:45:36 +0000 (17:45 +0000)
commitb9746389cec5e72acd4b1e5a5fa0da258b6077c4
tree8df3169d4957fe0b9e59a35cdd969e3818b49138
parent0598093e2c662020ccc32de074bdc106401f286f
Don't wait for child to finish in log_error(), let the signal handler
get it if we are still running, else let init reap it for us.  The extra
time it takes to wait lets the user know that mail is being sent.

Install SIGCHLD handler in main() and for POSIX signals, block everything
*except* SIGCHLD.
logging.c
sudo.c