From 47d0ea909d927182fc120c9401cd61eeab531972 Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Mon, 24 Aug 2015 10:46:44 +0200 Subject: [PATCH] tesh: Let a grace period of 1s for the child process to die properly --- tools/tesh/tesh.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/tesh/tesh.pl b/tools/tesh/tesh.pl index 4bbeb20fca..6acee9a38d 100755 --- a/tools/tesh/tesh.pl +++ b/tools/tesh/tesh.pl @@ -280,6 +280,8 @@ sub exec_cmd { die "fork() failed: $!" unless defined $forked; if ( $forked == 0 ) { # child sleep $time_to_wait; + kill(SIGTERM, $cmd{'pid'}); + sleep 1; kill(SIGKILL, $cmd{'pid'}); exit $time_to_wait; } -- 2.20.1