original_string: public static function checkWorkerStatusForWindows()
      {
          foreach(static::$_processForWindows as $process_data)
          {
              $process = $process_data[0];
              $start_file = $process_data[1];
              $timer_id = $process_data[2];
              $status = proc_get_status($process);
              if(isset($status['running']))
              {
                  if(!$status['running'])
                  {
                      static::safeEcho("process $start_file terminated and try to restart\n");
                      Timer::del($timer_id);
                      proc_close($process);
                      static::forkOneWorkerForWindows($start_file);
                  }
              }
              else
              {
                  static::safeEcho("proc_get_status fail\n");
              }
          }
      }
code: public static function checkWorkerStatusForWindows()
      {
          foreach(static::$_processForWindows as $process_data)
          {
              $process = $process_data[0];
              $start_file = $process_data[1];
              $timer_id = $process_data[2];
              $status = proc_get_status($process);
              if(isset($status['running']))
              {
                  if(!$status['running'])
                  {
                      static::safeEcho("process $start_file terminated and try to restart\n");
                      Timer::del($timer_id);
                      proc_close($process);
                      static::forkOneWorkerForWindows($start_file);
                  }
              }
              else
              {
                  static::safeEcho("proc_get_status fail\n");
              }
          }
      }
code_tokens: public static function checkWorkerStatusForWindows ( ) { foreach ( static :: $ _processForWindows as $ process_data ) { $ process = $ process_data [ 0 ] ; $ start_file = $ process_data [ 1 ] ; $ timer_id = $ process_data [ 2 ] ; $ status = proc_get_status ( $ process ) ; if ( isset ( $ status [ 'running' ] ) ) { if ( ! $ status [ 'running' ] ) { static :: safeEcho ( "process $start_file terminated and try to restart\n" ) ; Timer :: del ( $ timer_id ) ; proc_close ( $ process ) ; static :: forkOneWorkerForWindows ( $ start_file ) ; } } else { static :: safeEcho ( "proc_get_status fail\n" ) ; } } }
docstring: check worker status for windows.
  @return void
docstring_tokens: check worker status for windows .