daemon2: check proper lockfile location in reap_children()
This commit is contained in:
parent
8ccaff02b5
commit
7aabaa09e1
1 changed files with 2 additions and 1 deletions
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue