diff --git a/HttpServer/Action.php b/HttpServer/Action.php index e55abe6e..466a8153 100644 --- a/HttpServer/Action.php +++ b/HttpServer/Action.php @@ -56,7 +56,10 @@ trait Action if (empty($pathId)) { $this->close($server); } else { - exec("kill -TERM $pathId"); + exec('ps -ef 15132 | grep 15132', $output); + if (!empty($output)) { + exec("kill -TERM $pathId"); + } $this->close($server); } }