diff --git a/src/infrastructure/daemon/control/PhabricatorDaemonControl.php b/src/infrastructure/daemon/control/PhabricatorDaemonControl.php index d330c26dd2..2639ebe12b 100644 --- a/src/infrastructure/daemon/control/PhabricatorDaemonControl.php +++ b/src/infrastructure/daemon/control/PhabricatorDaemonControl.php @@ -1,7 +1,7 @@ $daemon) { $pid = $daemon->getPID(); $name = $daemon->getName(); @@ -109,7 +110,6 @@ final class PhabricatorDaemonControl { unset($running[$key]); } else { posix_kill($pid, SIGINT); - $killed[] = $daemon; } } @@ -132,10 +132,9 @@ final class PhabricatorDaemonControl { $pid = $daemon->getPID(); echo "KILLing daemon {$pid}.\n"; posix_kill($pid, SIGKILL); - $killed[] = $daemon; } - foreach ($killed as $daemon) { + foreach ($all_daemons as $daemon) { if ($daemon->getPIDFile()) { Filesystem::remove($daemon->getPIDFile()); }