From: Martin Quinson Date: Tue, 22 Sep 2015 13:49:58 +0000 (+0200) Subject: [tesh] speak of SIGKILL in a portable manner (hopefully) X-Git-Tag: v3_12~129 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ad4aedd4aa99eefd6a16d9a2e86a3ea0532aea54?ds=sidebyside [tesh] speak of SIGKILL in a portable manner (hopefully) --- diff --git a/tools/tesh/tesh.pl b/tools/tesh/tesh.pl index 48f5d1c782..95ae2ad6fe 100755 --- a/tools/tesh/tesh.pl +++ b/tools/tesh/tesh.pl @@ -311,7 +311,7 @@ sub exec_cmd { push @bg_cmds, \%cmd; # no timeout for background commands if($forked){ - kill(SIGKILL, $forked); + kill('KILL', $forked); $timeout=0; $forked=0; } @@ -627,7 +627,7 @@ print "hey\n"; die "[TESH/CRITICAL] parse error: $line\n"; } if($forked){ - kill(SIGKILL, $forked); + kill('KILL', $forked); $timeout=0; } @@ -643,7 +643,7 @@ if (defined($cmd{'cmd'})) { if($forked){ - kill(SIGKILL, $forked); + kill('KILL', $forked); $timeout=0; }