diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-01-23 22:24:40 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2021-01-23 22:24:40 +0000 |
commit | fc28e9e36e11702324d278ae7857053da7420e87 (patch) | |
tree | 83dbb53e845b71ec3989c806df02953ae6273c5a /src | |
parent | bb95cc4cfc1986db009af56fdd13fe56bd15dc87 (diff) | |
download | execline-fc28e9e36e11702324d278ae7857053da7420e87.tar.xz |
bugfix: trap needs to actually trap SIGCHLD :)
Diffstat (limited to 'src')
-rw-r--r-- | src/execline/trap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/execline/trap.c b/src/execline/trap.c index c79698b..2930aed 100644 --- a/src/execline/trap.c +++ b/src/execline/trap.c @@ -109,13 +109,13 @@ int main (int argc, char const **argv, char const *const *envp) if (xfersigs) { sigfillset(&set) ; - sigdelset(&set, SIGCHLD) ; sigdelset(&set, SIGKILL) ; sigdelset(&set, SIGSTOP) ; } else { sigemptyset(&set) ; + sigaddset(&set, SIGCHLD) ; for (i = 1 ; i < SKALIBS_NSIG ; i++) if (argvs[i]) sigaddset(&set, i) ; |