Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ignore sigpipes (as tesh.c used to do)
[simgrid.git] / buildtools / Cmake / Scripts / tesh.pl
index ec72da1..199c84f 100755 (executable)
@@ -34,7 +34,7 @@ my $error=0;
 my $exitcode=0;
 my @bg_cmds;
 my (%environ);
-
+$SIG{'PIPE'} = 'IGNORE';
 $path =~ s|[^/]*$||;
 push @INC,$path;
 
@@ -375,7 +375,7 @@ sub parse_out {
   my $diff;
   if (defined($cmd{'output display'})){
     print "[Tesh/INFO] Here is the (ignored) command output:\n";
-    map { print "||$_\n" } \@got;
+    map { print "||$_\n" } @got;
   }
   elsif (!defined($cmd{'output ignore'})){
     $diff = build_diff(\@{$cmd{'out'}}, \@got);