mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 18:08:23 +00:00
Add SIGCHLD to the list of signals we install sudo_handler() for.
Otherwise, it is possible for the command to exit before the SIGCHLD handler is installed. POSIX says that signals that are ignored by default are still ignored even if the signal mask would block them. We need to have a handler installed for SIGCHLD before the fork().
This commit is contained in:
parent
95e92bfe4e
commit
15790b69c2
@ -127,7 +127,6 @@ init_signals(void)
|
|||||||
|
|
||||||
for (ss = saved_signals; ss->signo > 0; ss++) {
|
for (ss = saved_signals; ss->signo > 0; ss++) {
|
||||||
switch (ss->signo) {
|
switch (ss->signo) {
|
||||||
case SIGCHLD:
|
|
||||||
case SIGCONT:
|
case SIGCONT:
|
||||||
case SIGPIPE:
|
case SIGPIPE:
|
||||||
case SIGTTIN:
|
case SIGTTIN:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user