]> git.wh0rd.org - tt-rss.git/blobdiff - update.php
fix zoom style not properly applying
[tt-rss.git] / update.php
index 0141b1a8e5c31a072c3ebfe8219ab412f587d689..c1547fa7f7f00033e0f077686a4b39d506918fd4 100755 (executable)
        if (isset($options["daemon"])) {
                while (true) {
                        $quiet = (isset($options["quiet"])) ? "--quiet" : "";
+         $log = isset($options['log']) ? '--log '.$options['log'] : '';
 
-                       passthru(PHP_EXECUTABLE . " " . $argv[0] ." --daemon-loop $quiet");
+                       passthru(PHP_EXECUTABLE . " " . $argv[0] ." --daemon-loop $quiet $log");
                        _debug("Sleeping for " . DAEMON_SLEEP_INTERVAL . " seconds...");
                        sleep(DAEMON_SLEEP_INTERVAL);
                }
 
        PluginHost::getInstance()->run_commands($options);
 
-       if ($lock_handle != false) {
-               fclose($lock_handle);
-       }
-
        if (file_exists(LOCK_DIRECTORY . "/$lock_filename"))
                unlink(LOCK_DIRECTORY . "/$lock_filename");
 ?>