From ec3767fd5e23716f982d0593b6e7afd6b5a3a67f Mon Sep 17 00:00:00 2001 From: Ole Tange Date: Sat, 22 Oct 2016 13:26:16 +0200 Subject: [PATCH] Maybe fixed bug #49412: Signal SIGCHLD received, but no signal handler. Testing missing. --- src/parallel | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parallel b/src/parallel index 60a44ef1..b6b97645 100755 --- a/src/parallel +++ b/src/parallel @@ -1210,7 +1210,7 @@ sub check_invalid_option_combinations { sub init_globals { # Defaults: - $Global::version = 20160922; + $Global::version = 20160924; $Global::progname = 'parallel'; $Global::infinity = 2**31; $Global::debug = 0; @@ -4357,8 +4357,8 @@ sub reap_usleep { # When a child dies, wake up from sleep (or select(,,,)) $SIG{CHLD} = sub { kill "ALRM", $$ }; usleep($ms); - # --compress needs $SIG{CHLD} undefined - delete $SIG{CHLD}; + # --compress needs $SIG{CHLD} unset + $SIG{CHLD} = 'DEFAULT'; exit_if_disk_full(); if($opt::linebuffer) { if($opt::keeporder) {