]> git.wh0rd.org - tt-rss.git/blobdiff - update_daemon2.php
daemon: do not fork on startup
[tt-rss.git] / 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.