From 86f71afee333b2108aa5679520bff751fbe1dd6a Mon Sep 17 00:00:00 2001 From: Nigel Kukard Date: Sat, 17 Sep 2016 18:52:18 +0000 Subject: [PATCH] We test a process is up by kill 0 not kill -1 --- awit-ssh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awit-ssh b/awit-ssh index 8a7ab4d..0812485 100755 --- a/awit-ssh +++ b/awit-ssh @@ -663,7 +663,7 @@ exit 0; sub cleanup { # Kill the child - if ($forwardChild && kill(-1,$forwardChild)) { + if ($forwardChild && kill(0,$forwardChild)) { kill('TERM',$forwardChild); # Wait for it to die waitpid($forwardChild,-1); -- GitLab