Skip to content

Commit

Permalink
fix: watchdog ignores case when no processes running
Browse files Browse the repository at this point in the history
  • Loading branch information
blacknell committed Jul 23, 2021
1 parent 189d248 commit 6727a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Watchdog.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function watch(string $watchScript, string $watchScriptGrep, string $watc
}
}

if ($watchdogDead || $watchFilesHaveChanged) {
if ($watchdogDead || $watchFilesHaveChanged || count($processes == 0)) {

// first find processes and ask them nicely
foreach ($processes as $process) {
Expand Down

0 comments on commit 6727a3f

Please sign in to comment.