Page MenuHomePhabricator

D15812.diff
No OneTemporary

D15812.diff

diff --git a/src/daemon/PhutilDaemonOverseer.php b/src/daemon/PhutilDaemonOverseer.php
--- a/src/daemon/PhutilDaemonOverseer.php
+++ b/src/daemon/PhutilDaemonOverseer.php
@@ -144,6 +144,13 @@
} else if ($pid) {
exit(0);
}
+
+ if (function_exists('posix_setsid')) {
+ $sid = posix_setsid();
+ if ($sid === -1) {
+ throw new Exception(pht('Unable to setsid!'));
+ }
+ }
}
$this->modules = PhutilDaemonOverseerModule::getAllModules();

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 19, 4:22 AM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6730299
Default Alt Text
D15812.diff (508 B)

Event Timeline