From: epg <> Date: Fri, 14 Apr 2006 01:31:10 +0000 (+0000) Subject: (newjob): Should be setting $SIG{CHLD} to 'DEFAULT', not 'IGNORE'. X-Git-Url: https://diplodocus.org/git/flac-archive/commitdiff_plain/e1d9f545022b38f95f35cd396448b861e6d95cbd (newjob): Should be setting $SIG{CHLD} to 'DEFAULT', not 'IGNORE'. The former happened to work on NetBSD but isn't right, and doesn't work on Linux 2.6 (was causing system(flac) to return -1). --- diff --git a/fa-flacd b/fa-flacd index 3c36372..063147b 100755 --- a/fa-flacd +++ b/fa-flacd @@ -152,7 +152,7 @@ sub newjob { } if ($debug or $pid == 0) { - $SIG{CHLD} = 'IGNORE'; + $SIG{CHLD} = 'DEFAULT'; open(STDERR, ">$dir/log") or die("open(STDERR, >$dir/log): $!"); exit(flac($dir)); }