Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18364438
D11889.id28645.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
741 B
Referenced Files
None
Subscribers
None
D11889.id28645.diff
View Options
diff --git a/src/daemon/PhutilDaemonHandle.php b/src/daemon/PhutilDaemonHandle.php
--- a/src/daemon/PhutilDaemonHandle.php
+++ b/src/daemon/PhutilDaemonHandle.php
@@ -271,15 +271,6 @@
}
}
-
- private function gracefulProcessGroup() {
- $pid = $this->pid;
- $pgid = posix_getpgid($pid);
- if ($pid && $pgid) {
- exec("kill -INT -{$pgid}");
- }
- }
-
private function updateMemory() {
if ($this->traceMemory) {
$memuse = number_format(memory_get_usage() / 1024, 1);
@@ -371,7 +362,9 @@
}
$this->logMessage('DONE', $sigmsg, $signo);
- $this->gracefulProcessGroup();
+
+ $pid = $this->pid;
+ exec("kill -INT {$pid}");
}
public function didReceiveTerminalSignal($signo) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Aug 28 2025, 7:08 PM (17 w, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8777087
Default Alt Text
D11889.id28645.diff (741 B)
Attached To
Mode
D11889: Only SIGINT the daemon itself, not its entire process group
Attached
Detach File
Event Timeline
Log In to Comment