From ad4aedd4aa99eefd6a16d9a2e86a3ea0532aea54 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 22 Sep 2015 15:49:58 +0200 Subject: [PATCH] [tesh] speak of SIGKILL in a portable manner (hopefully) --- tools/tesh/tesh.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.20.1