From f652ed844e3998f1b9ba84dd9a8d5451423ffd04 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Thu, 10 Oct 2013 11:41:15 +0200 Subject: [PATCH] replace signal number by its name, for better portability --- buildtools/Cmake/Scripts/tesh.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildtools/Cmake/Scripts/tesh.pl b/buildtools/Cmake/Scripts/tesh.pl index d74a6d554b..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; } } @@ -532,7 +532,7 @@ LINE: while (not $finished and not $error) { die "[TESH/CRITICAL] parse error: $line\n"; } if($forked){ - kill(9, $forked); + kill(SIGKILL, $forked); $timeout=0; } @@ -548,7 +548,7 @@ if (defined($cmd{'cmd'})) { if($forked){ - kill(9, $forked); + kill(SIGKILL, $forked); $timeout=0; } -- 2.20.1