Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15406869
D11866.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
978 B
Referenced Files
None
Subscribers
None
D11866.diff
View Options
diff --git a/src/daemon/PhutilDaemon.php b/src/daemon/PhutilDaemon.php
--- a/src/daemon/PhutilDaemon.php
+++ b/src/daemon/PhutilDaemon.php
@@ -368,7 +368,7 @@
'down' => 'optional int',
'pool' => 'optional int',
'clone' => 'optional bool',
- 'reserve' => 'optional float',
+ 'reserve' => 'optional int|float',
));
$this->autoscaleProperties = $autoscale_properties;
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 19, 2:23 PM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7304649
Default Alt Text
D11866.diff (978 B)
Attached To
Mode
D11866: Emit exit event from daemon handle when daemon is not running
Attached
Detach File
Event Timeline
Log In to Comment