From: Andrew Dolgov Date: Fri, 29 Oct 2010 08:10:24 +0000 (+0400) Subject: daemon2: check proper lockfile location in reap_children() X-Git-Tag: 1.5.0~427 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7aabaa09e13482291194c3c8d86a0e8421ea009c;p=tt-rss.git daemon2: check proper lockfile location in reap_children() --- diff --git a/update_daemon2.php b/update_daemon2.php index c8556a61..d7141c87 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -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.");