Page MenuHomePhabricator

D11892.id28651.diff
No OneTemporary

D11892.id28651.diff

diff --git a/src/daemon/PhutilDaemonOverseer.php b/src/daemon/PhutilDaemonOverseer.php
--- a/src/daemon/PhutilDaemonOverseer.php
+++ b/src/daemon/PhutilDaemonOverseer.php
@@ -347,9 +347,12 @@
}
public function didReceiveGracefulSignal($signo) {
- // If we receive SIGINT more than once, interpret it like SIGTERM.
+ // If we receive SIGINT more than once, continue shutting
+ // down gracefully. If the user wants to force a shutdown
+ // of daemons, they can use "--graceful 0" (or wait the
+ // default 15 seconds).
if ($this->inGracefulShutdown) {
- return $this->didReceiveTerminalSignal($signo);
+ return;
}
$this->inGracefulShutdown = true;

File Metadata

Mime Type
text/plain
Expires
Mar 24 2025, 1:23 AM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7712798
Default Alt Text
D11892.id28651.diff (699 B)

Event Timeline