protected function stopWorkers($n = 1)
    {
        Daemon::log('--' . $n . '-- ' . Debug::backtrace() . '-----');

        $n = (int)$n;
        $i = 0;

        foreach ($this->workers->threads as &$w) {
            if ($i >= $n) {
                break;
            }

            if ($w->shutdown) {
                continue;
            }

            if ($w->reloaded) {
                continue;
            }

            $w->stop();
            ++$i;
        }

        $this->lastMpmActionTs = microtime(true);
        return true;
    }
protected function stopWorkers($n = 1)
    {
        Daemon::log('--' . $n . '-- ' . Debug::backtrace() . '-----');

        $n = (int)$n;
        $i = 0;

        foreach ($this->workers->threads as &$w) {
            if ($i >= $n) {
                break;
            }

            if ($w->shutdown) {
                continue;
            }

            if ($w->reloaded) {
                continue;
            }

            $w->stop();
            ++$i;
        }

        $this->lastMpmActionTs = microtime(true);
        return true;
    }
protected function stopWorkers ( $ n = 1 ) { Daemon :: log ( '--' . $ n . '-- ' . Debug :: backtrace ( ) . '-----' ) ; $ n = ( int ) $ n ; $ i = 0 ; foreach ( $ this -> workers -> threads as & $ w ) { if ( $ i >= $ n ) { break ; } if ( $ w -> shutdown ) { continue ; } if ( $ w -> reloaded ) { continue ; } $ w -> stop ( ) ; ++ $ i ; } $ this -> lastMpmActionTs = microtime ( true ) ; return true ; }
Stop the workers
@param $n - integer - number of workers to stop
@return boolean - success
Stop the workers