Page MenuHomePhabricator

D11866.id28582.diff
No OneTemporary

D11866.id28582.diff

diff --git a/src/daemon/PhutilDaemonHandle.php b/src/daemon/PhutilDaemonHandle.php
--- a/src/daemon/PhutilDaemonHandle.php
+++ b/src/daemon/PhutilDaemonHandle.php
@@ -352,6 +352,11 @@
public function didReceiveGracefulSignal($signo) {
$this->shouldShutdown = true;
+ if (!$this->isRunning()) {
+ // If we aren't running a daemon, emit this event now. Otherwise, we'll
+ // emit it when the daemon exits.
+ $this->dispatchEvent(self::EVENT_WILL_EXIT);
+ }
$signame = phutil_get_signal_name($signo);
if ($signame) {

File Metadata

Mime Type
text/plain
Expires
Mar 7 2025, 2:05 AM (5 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7313866
Default Alt Text
D11866.id28582.diff (558 B)

Event Timeline