Page MenuHomePhabricator

D11889.diff
No OneTemporary

D11889.diff

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

Mime Type
text/plain
Expires
Thu, Jan 16, 9:00 AM (18 h, 27 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6996268
Default Alt Text
D11889.diff (741 B)

Event Timeline