From 0e2255fca0e77d3dbe6529111d6ce732aa68ec17 Mon Sep 17 00:00:00 2001 From: akifquddus Date: Tue, 20 Mar 2018 15:54:01 +0500 Subject: [PATCH] Update BackgroundProcess.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added -SIGKILL in stop() function. -9 or -SIGKILL – A special kill signal that nearly guarantees to kill the process with the iron fist. --- src/BackgroundProcess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BackgroundProcess.php b/src/BackgroundProcess.php index 599265c..3e92311 100755 --- a/src/BackgroundProcess.php +++ b/src/BackgroundProcess.php @@ -115,7 +115,7 @@ public function stop() 'Unix, Linux or Mac OS X. You are running "%s".'); try { - $result = shell_exec(sprintf('kill %d 2>&1', $this->pid)); + $result = shell_exec(sprintf('kill -9 %d 2>&1', $this->pid)); if (!preg_match('/No such process/', $result)) { return true; }