diff options
author | Andrew Dolgov <[email protected]> | 2010-10-29 12:10:24 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-10-29 12:10:24 +0400 |
commit | 7aabaa09e13482291194c3c8d86a0e8421ea009c (patch) | |
tree | dff368d8084f95caecca9da535e9dd250833932a | |
parent | 8ccaff02b50c32acb6162f9f527bf2801f725ace (diff) |
daemon2: check proper lockfile location in reap_children()
-rwxr-xr-x | update_daemon2.php | 3 |
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."); |