]> git.mxchange.org Git - friendica.git/blobdiff - bin/daemon.php
Fix undefined tamplate variables in comment_item.tpl
[friendica.git] / bin / daemon.php
index cc86a9f20155500817cf9622571c72babb8bf398..4fa9f8bd3fb5e844f3810a6a9657d5ca88954333 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/env php
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -224,8 +224,10 @@ while (true) {
                usleep($sleep);
 
                $pid = pcntl_waitpid(-1, $status, WNOHANG);
-               Logger::info('Checked children status via pcntl_waitpid', ['pid' => $pid, 'status' => $status]);
-       
+               if ($pid > 0) {
+                       Logger::info('Children quit via pcntl_waitpid', ['pid' => $pid, 'status' => $status]);
+               }
+
                $timeout = ($seconds >= $wait_interval);
        } while (!$timeout && !Worker::IPCJobsExists());