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");
            }
        }
    }
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");
            }
        }
    }
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" ) ; } } }
check worker status for windows.
@return void
check worker status for windows .