(newjob): Child now exits with flac's return value.
rename("$artist/$album.flac-tmp", "$artist/$album.flac")
or die("rename($artist/$album.flac-tmp, $artist/$album.flac): $!");
+
+ return 0;
}
sub reaper {
} 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");