]> git.wh0rd.org Git - tt-rss.git/commitdiff
daemon2: check proper lockfile location in reap_children()
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 29 Oct 2010 08:10:24 +0000 (12:10 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 29 Oct 2010 08:10:24 +0000 (12:10 +0400)
update_daemon2.php

index c8556a61e6d499b1bbe223f2d6a039db03df9f9e..d7141c87815a0d8a784b0e099502363dbb7fcdcd 100755 (executable)
@@ -53,7 +53,8 @@
 
                foreach ($children as $pid) {
                        if (pcntl_waitpid($pid, $status, WNOHANG) != $pid) {
-                               if (file_is_locked(LOCK_DIRECTORY . "/update_daemon-$pid.lock")) {
+
+                               if (file_is_locked("update_daemon-$pid.lock")) {
                                        array_push($tmp, $pid);
                                } else {
                                        _debug("[reap_children] child $pid seems active but lockfile is unlocked.");