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

+ 2 - 2
Worker.php

@@ -644,7 +644,7 @@ class Worker
         if (static::$_OS !== \OS_TYPE_LINUX) {
             return;
         }
-        static::$_statisticsFile = \sys_get_temp_dir() . "/".posix_getpid().".status";
+        static::$_statisticsFile = __DIR__ . '/../workerman-' .posix_getpid().'.status';
         foreach (static::$_workers as $worker) {
             // Worker name.
             if (empty($worker->name)) {
@@ -920,7 +920,7 @@ class Worker
             exit;
         }
 
-        $statistics_file = \sys_get_temp_dir() . "/".$master_pid.".status";;
+        $statistics_file =  __DIR__ . "/../workerman-$master_pid.status";
 
         // execute command.
         switch ($command) {