gethin 4 år sedan
förälder
incheckning
0032010fdc
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Worker.php

+ 1 - 1
Worker.php

@@ -908,7 +908,7 @@ class Worker
         static::log("Workerman[$start_file] $command $mode_str");
 
         // Get master process PID.
-        $master_pid      = \is_file(static::$pidFile) ? \file_get_contents(static::$pidFile) : 0;
+        $master_pid      = intval(\is_file(static::$pidFile) ? \file_get_contents(static::$pidFile) : 0);
         // Master is still alive?
         if (static::checkMasterIsAlive($master_pid)) {
             if ($command === 'start') {