소스 검색

Log master pid not alive

walkor 1 년 전
부모
커밋
7beb1e4871
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/Worker.php

+ 1 - 0
src/Worker.php

@@ -2597,6 +2597,7 @@ class Worker
 
         $masterIsAlive = posix_kill($masterPid, 0) && posix_getpid() !== $masterPid;
         if (!$masterIsAlive) {
+            static::log("Master pid:$masterPid is not alive");
             return false;
         }