فهرست منبع

Check for windows

walkor 8 سال پیش
والد
کامیت
511e7661c3
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      Worker.php

+ 2 - 2
Worker.php

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