From: Andrew Dolgov Date: Wed, 11 Jan 2012 11:14:44 +0000 (+0400) Subject: daemon: assume child is dead if its lockfile is unlocked (refs #417) X-Git-Tag: 1.5.9~6 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=125ab8dbf7387bf57f0c3285fc3e7a8ce2013aaa;p=tt-rss.git daemon: assume child is dead if its lockfile is unlocked (refs #417) --- diff --git a/update_daemon2.php b/update_daemon2.php index 62bd7591..80848bd0 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -53,6 +53,8 @@ array_push($tmp, $pid); } else { _debug("[reap_children] child $pid seems active but lockfile is unlocked."); + unset($ctimes[$pid]); + } } else { _debug("[reap_children] child $pid reaped.");