Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18375481
D15812.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
508 B
Referenced Files
None
Subscribers
None
D15812.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 29, 10:03 AM (5 h, 24 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8479908
Default Alt Text
D15812.diff (508 B)
Attached To
Mode
D15812: More correctly daemonize under unix
Attached
Detach File
Event Timeline
Log In to Comment