From: epg <> Date: Thu, 15 Apr 2004 16:24:45 +0000 (+0000) Subject: (flac): return 0 X-Git-Url: https://diplodocus.org/git/flac-archive/commitdiff_plain/315f17e6c9128a0fe970ca30a79c6ddfb48e124b?ds=sidebyside (flac): return 0 (newjob): Child now exits with flac's return value. --- diff --git a/fa-flacd b/fa-flacd index cc8438f..316e5cc 100755 --- 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");