]> diplodocus.org Git - flac-archive/commitdiff
(newjob): Should be setting $SIG{CHLD} to 'DEFAULT', not 'IGNORE'.
authorepg <>
Fri, 14 Apr 2006 01:31:10 +0000 (01:31 +0000)
committerepg <>
Fri, 14 Apr 2006 01:31:10 +0000 (01:31 +0000)
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).

fa-flacd

index 3c36372..063147b 100755 (executable)
--- 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));
     }