summaryrefslogtreecommitdiff
path: root/update_daemon2.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-10-29 12:10:24 +0400
committerAndrew Dolgov <[email protected]>2010-10-29 12:10:24 +0400
commit7aabaa09e13482291194c3c8d86a0e8421ea009c (patch)
treedff368d8084f95caecca9da535e9dd250833932a /update_daemon2.php
parent8ccaff02b50c32acb6162f9f527bf2801f725ace (diff)
daemon2: check proper lockfile location in reap_children()
Diffstat (limited to 'update_daemon2.php')
-rwxr-xr-xupdate_daemon2.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/update_daemon2.php b/update_daemon2.php
index c8556a61e..d7141c878 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.");