]> git.mxchange.org Git - friendica.git/blobdiff - bin/daemon.php
Issue 10050: Improve photo deletions
[friendica.git] / bin / daemon.php
index ec507305cc826d621ba73cb5972082cab728595d..fcdd735668cf042550a3f598c6311419a7c70431 100755 (executable)
@@ -223,6 +223,11 @@ while (true) {
                $sleep = min(1000000, round(log10($arg) * 1000000, 0));
                usleep($sleep);
 
+               $pid = pcntl_waitpid(-1, $status, WNOHANG);
+               if ($pid > 0) {
+                       Logger::info('Children quit via pcntl_waitpid', ['pid' => $pid, 'status' => $status]);
+               }
+
                $timeout = ($seconds >= $wait_interval);
        } while (!$timeout && !Worker::IPCJobsExists());