]> git.wh0rd.org - tt-rss.git/commitdiff
daemon: do not fork on startup
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 3 Jan 2013 22:35:28 +0000 (02:35 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 3 Jan 2013 22:35:28 +0000 (02:35 +0400)
update_daemon2.php

index 04a7b0fc2f596def0425b905903352d48541810c..f2a962629d7d1b7f92c92bb31ea7183635237421 100755 (executable)
                        "Maybe another daemon is already running.\n");
        }
 
-       if (!pcntl_fork()) {
+       /* if (!pcntl_fork()) {
                pcntl_signal(SIGINT, 'sigint_handler');
                register_shutdown_function('shutdown');
 
                }
 
                while (true) { sleep(100); }
-       }
+       } */
 
        // Testing database connection.
        // It is unnecessary to start the fork loop if database is not ok.