]> diplodocus.org Git - flac-archive/blobdiff - fa-flacd
(verbose): Use for instead of map.
[flac-archive] / fa-flacd
index 26b0ff6837ae75477c14f15580ff4063d4df5360..167e6b9b978c80e274c9c47996f201bd26935289 100755 (executable)
--- a/fa-flacd
+++ b/fa-flacd
@@ -30,7 +30,7 @@ my @jobs;
 my @finished;
 
 sub verbose {
-    $verbose and map({ print(STDERR $_) } @_);
+    $verbose and print(STDERR $_) for @_;
 }
 
 # Return the ARTIST, ALBUM, and DATE followed by a list of all the
@@ -134,7 +134,7 @@ sub newjob {
     my $pid;
 
     $pid = fork();
-    if ($pid == -1) {
+    if (not defined($pid)) {
         die("fork: $!");
     } elsif ($pid == 0) {
         $SIG{CHLD} = 'IGNORE';