Explorar o código

Remove statistics file when stop.

walkor %!s(int64=8) %!d(string=hai) anos
pai
achega
7ca271252e
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      Worker.php

+ 4 - 0
Worker.php

@@ -1214,6 +1214,10 @@ class Worker
                 posix_kill($worker_pid, SIGINT);
                 Timer::add(self::KILL_WORKER_TIMER_TIME, 'posix_kill', array($worker_pid, SIGKILL), false);
             }
+            // Remove statistics file.
+            if (is_file(self::$_statisticsFile)) {
+                @unlink(self::$_statisticsFile);
+            }
         } // For child processes.
         else {
             // Execute exit.