]> git.wh0rd.org - tt-rss.git/commitdiff
daemon: assume child is dead if its lockfile is unlocked (refs #417)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 11 Jan 2012 11:14:44 +0000 (15:14 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 11 Jan 2012 11:14:44 +0000 (15:14 +0400)
update_daemon2.php

index 62bd7591a40a759ee85047809f7c16bdbfda03d3..80848bd0a4307d94a9d73e07a0d98f70b4268a8c 100755 (executable)
@@ -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.");