Fixed bug in open call
authorAndrew DeFaria <adefaria@audience.local>
Tue, 28 Jul 2015 19:02:30 +0000 (12:02 -0700)
committerAndrew DeFaria <adefaria@audience.local>
Tue, 28 Jul 2015 19:02:30 +0000 (12:02 -0700)
lib/Logger.pm

index 4d31d3e..f57b6ef 100644 (file)
@@ -685,7 +685,7 @@ Returns:
 
   display "\$ $cmd", $self->{handle} if get_debug;
 
-  my $status = open my $output, '|', "$cmd 2>&1";
+  my $status = open my $output, '-|', "$cmd 2>&1";
 
   if (!$status) {
     $self->{error}++;