Skip to content

Commit

Permalink
Reload command now sends SIGTERM signal to detached processes
Browse files Browse the repository at this point in the history
  • Loading branch information
luzrain committed Apr 9, 2024
1 parent 4431adb commit a33f2b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Internal/MasterProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,7 @@ public function reload(): void
}

foreach ($this->pool->getAlivePids() as $pid) {
if ($this->processStatusPool->isDetached($pid) === false) {
\posix_kill($pid, SIGUSR2);
}
\posix_kill($pid, $this->processStatusPool->isDetached($pid) ? SIGTERM : SIGUSR2);
}
}

Expand Down

0 comments on commit a33f2b1

Please sign in to comment.