X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/67c91d5b8652b0e76801e9cfc7d965a360237152..f652ed844e3998f1b9ba84dd9a8d5451423ffd04:/buildtools/Cmake/Scripts/tesh.pl diff --git a/buildtools/Cmake/Scripts/tesh.pl b/buildtools/Cmake/Scripts/tesh.pl index 31acb42b13..ca4d0b79bf 100755 --- a/buildtools/Cmake/Scripts/tesh.pl +++ b/buildtools/Cmake/Scripts/tesh.pl @@ -258,7 +258,7 @@ sub exec_cmd { die "fork() failed: $!" unless defined $forked; if ( $forked == 0 ) { # child sleep $time_to_wait; - kill(9, $pid); + kill(SIGKILL, $pid); exit $time_to_wait; } } @@ -531,6 +531,11 @@ LINE: while (not $finished and not $error) { } else { die "[TESH/CRITICAL] parse error: $line\n"; } + if($forked){ + kill(SIGKILL, $forked); + $timeout=0; + } + } @@ -543,7 +548,7 @@ if (defined($cmd{'cmd'})) { if($forked){ - kill(9, $forked); + kill(SIGKILL, $forked); $timeout=0; }