From 7aabaa09e13482291194c3c8d86a0e8421ea009c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 29 Oct 2010 12:10:24 +0400 Subject: [PATCH] daemon2: check proper lockfile location in reap_children() --- update_daemon2.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.");