From fc28e9e36e11702324d278ae7857053da7420e87 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 23 Jan 2021 22:24:40 +0000 Subject: bugfix: trap needs to actually trap SIGCHLD :) --- src/execline/trap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) ; -- cgit 1.4.1