]> git.wh0rd.org - tt-rss.git/commitdiff
update.php --daemon did not respect --quiet
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 1 Apr 2013 15:51:43 +0000 (19:51 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 1 Apr 2013 15:51:43 +0000 (19:51 +0400)
update.php

index 691e168e29a0309bcc0978ca832e5c3764f17ba0..e57aef90f2eaecf81e4b2f3298a15d32a88e0594 100755 (executable)
 
        if (isset($options["daemon"])) {
                while (true) {
-                       passthru(PHP_EXECUTABLE . " " . $argv[0] ." --daemon-loop");
+                       $quiet = (isset($options["quiet"])) ? "--quiet" : "";
+
+                       passthru(PHP_EXECUTABLE . " " . $argv[0] ." --daemon-loop $quiet");
                        _debug("Sleeping for " . DAEMON_SLEEP_INTERVAL . " seconds...");
                        sleep(DAEMON_SLEEP_INTERVAL);
                }