Skip to content

Commit

Permalink
[hotfix] Do not kill itself when the process has no PID...
Browse files Browse the repository at this point in the history
  • Loading branch information
sroze committed Feb 1, 2018
1 parent a83cd0c commit 5b84764
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ public function extend()

public function stop()
{
$this->forceKill($this->process->getPid());
if (null !== ($pid = $this->process->getPid())) {
$this->forceKill($pid);
}
}

private function getCommandPrefix() : string
Expand Down

0 comments on commit 5b84764

Please sign in to comment.