Browse Source

Check for windows

walkor 8 years ago
parent
commit
511e7661c3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Worker.php

+ 2 - 2
Worker.php

@@ -971,7 +971,7 @@ class Worker
      */
      */
     protected static function daemonize()
     protected static function daemonize()
     {
     {
-        if (!static::$daemonize) {
+        if (!static::$daemonize || static::$_OS !== 'linux') {
             return;
             return;
         }
         }
         umask(0);
         umask(0);
@@ -1000,7 +1000,7 @@ class Worker
      */
      */
     public static function resetStd()
     public static function resetStd()
     {
     {
-        if (!static::$daemonize) {
+        if (!static::$daemonize || static::$_OS !== 'linux') {
             return;
             return;
         }
         }
         global $STDOUT, $STDERR;
         global $STDOUT, $STDERR;