Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill the timeout process not only for last command, but for each one
authorAugustin Degomme <degomme@idpann.imag.fr>
Thu, 10 Oct 2013 08:23:52 +0000 (10:23 +0200)
committerAugustin Degomme <degomme@idpann.imag.fr>
Thu, 10 Oct 2013 08:23:52 +0000 (10:23 +0200)
buildtools/Cmake/Scripts/tesh.pl

index 31acb42..d74a6d5 100755 (executable)
@@ -531,6 +531,11 @@ LINE: while (not $finished and not $error) {
   } else {
     die "[TESH/CRITICAL] parse error: $line\n";
   }
   } else {
     die "[TESH/CRITICAL] parse error: $line\n";
   }
+  if($forked){
+   kill(9, $forked);
+   $timeout=0;
+  }
+
 }
 
 
 }