walkor %!s(int64=5) %!d(string=hai) anos
pai
achega
49708bb40e
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      Worker.php

+ 1 - 5
Worker.php

@@ -1191,11 +1191,7 @@ class Worker
             // Reload.
             case \SIGQUIT:
             case \SIGUSR1:
-                if($signal === \SIGQUIT){
-                    static::$_gracefulStop = true;
-                }else{
-                    static::$_gracefulStop = false;
-                }
+                static::$_gracefulStop = $signal === \SIGQUIT;
                 static::$_pidsToRestart = static::getAllWorkerPids();
                 static::reload();
                 break;