summaryrefslogtreecommitdiff
path: root/update_daemon2.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-01-04 02:35:28 +0400
committerAndrew Dolgov <[email protected]>2013-01-04 02:35:28 +0400
commit77c21cef3af95424b6668edce55af4f23acb1f3e (patch)
tree6e367435f1aa511fb9199d6b3fe200f82e2cc514 /update_daemon2.php
parent2ae2bb1f5292781eeba1557b4102a189958c140e (diff)
daemon: do not fork on startup
Diffstat (limited to 'update_daemon2.php')
-rwxr-xr-xupdate_daemon2.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/update_daemon2.php b/update_daemon2.php
index 04a7b0fc2..f2a962629 100755
--- a/update_daemon2.php
+++ b/update_daemon2.php
@@ -113,7 +113,7 @@
"Maybe another daemon is already running.\n");
}
- if (!pcntl_fork()) {
+ /* if (!pcntl_fork()) {
pcntl_signal(SIGINT, 'sigint_handler');
register_shutdown_function('shutdown');
@@ -126,7 +126,7 @@
}
while (true) { sleep(100); }
- }
+ } */
// Testing database connection.
// It is unnecessary to start the fork loop if database is not ok.