From: Andrew Dolgov Date: Thu, 3 Jan 2013 22:35:28 +0000 (+0400) Subject: daemon: do not fork on startup X-Git-Tag: 1.7.0~71 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=77c21cef3af95424b6668edce55af4f23acb1f3e;p=tt-rss.git daemon: do not fork on startup --- diff --git a/update_daemon2.php b/update_daemon2.php index 04a7b0fc..f2a96262 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.