mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:45:56 +00:00
daemon2: check proper lockfile location in reap_children()
This commit is contained in:
@@ -53,7 +53,8 @@
|
|||||||
|
|
||||||
foreach ($children as $pid) {
|
foreach ($children as $pid) {
|
||||||
if (pcntl_waitpid($pid, $status, WNOHANG) != $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);
|
array_push($tmp, $pid);
|
||||||
} else {
|
} else {
|
||||||
_debug("[reap_children] child $pid seems active but lockfile is unlocked.");
|
_debug("[reap_children] child $pid seems active but lockfile is unlocked.");
|
||||||
|
|||||||
Reference in New Issue
Block a user