summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.");