summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-01-23 22:24:40 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-01-23 22:24:40 +0000
commitfc28e9e36e11702324d278ae7857053da7420e87 (patch)
tree83dbb53e845b71ec3989c806df02953ae6273c5a /src
parentbb95cc4cfc1986db009af56fdd13fe56bd15dc87 (diff)
downloadexecline-fc28e9e36e11702324d278ae7857053da7420e87.tar.gz
execline-fc28e9e36e11702324d278ae7857053da7420e87.tar.xz
execline-fc28e9e36e11702324d278ae7857053da7420e87.zip
bugfix: trap needs to actually trap SIGCHLD :)
Diffstat (limited to 'src')
-rw-r--r--src/execline/trap.c2
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) ;