]> diplodocus.org Git - flac-archive/commitdiff
(flac): return 0
authorepg <>
Thu, 15 Apr 2004 16:24:45 +0000 (16:24 +0000)
committerepg <>
Thu, 15 Apr 2004 16:24:45 +0000 (16:24 +0000)
(newjob): Child now exits with flac's return value.

fa-flacd

index cc8438f..316e5cc 100755 (executable)
--- a/fa-flacd
+++ b/fa-flacd
@@ -115,6 +115,8 @@ sub flac {
 
     rename("$artist/$album.flac-tmp", "$artist/$album.flac")
       or die("rename($artist/$album.flac-tmp, $artist/$album.flac): $!");
+
+    return 0;
 }
 
 sub reaper {
@@ -137,8 +139,7 @@ sub newjob {
     } elsif ($pid == 0) {
         $SIG{CHLD} = 'IGNORE';
         open(STDERR, ">$dir/log") or die("open(STDERR, >$dir/log): $!");
-        flac($dir);
-        exit(0);
+        exit(flac($dir));
     }
 
     verbose("new job $pid for $dir\n");