Skip to content

Commit 5b84764

Browse files
committed
[hotfix] Do not kill itself when the process has no PID...
1 parent a83cd0c commit 5b84764

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ContinuousPipe/Message/Transaction/Deadline/ProcessMessageDeadlineExtender.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ public function extend()
7272

7373
public function stop()
7474
{
75-
$this->forceKill($this->process->getPid());
75+
if (null !== ($pid = $this->process->getPid())) {
76+
$this->forceKill($pid);
77+
}
7678
}
7779

7880
private function getCommandPrefix() : string

0 commit comments

Comments
 (0)