public function init()
    {
        parent::init();
        if (extension_loaded('pcntl')) {
            foreach ($this->exitSignals as $signal) {
                pcntl_signal($signal, function () {
                    self::$exit = true;
                });
            }
            foreach ($this->suspendSignals as $signal) {
                pcntl_signal($signal, function () {
                    self::$pause = true;
                });
            }
            foreach ($this->resumeSignals as $signal) {
                pcntl_signal($signal, function () {
                    self::$pause = false;
                });
            }
        }
    }
public function init()
    {
        parent::init();
        if (extension_loaded('pcntl')) {
            foreach ($this->exitSignals as $signal) {
                pcntl_signal($signal, function () {
                    self::$exit = true;
                });
            }
            foreach ($this->suspendSignals as $signal) {
                pcntl_signal($signal, function () {
                    self::$pause = true;
                });
            }
            foreach ($this->resumeSignals as $signal) {
                pcntl_signal($signal, function () {
                    self::$pause = false;
                });
            }
        }
    }
public function init ( ) { parent :: init ( ) ; if ( extension_loaded ( 'pcntl' ) ) { foreach ( $ this -> exitSignals as $ signal ) { pcntl_signal ( $ signal , function ( ) { self :: $ exit = true ; } ) ; } foreach ( $ this -> suspendSignals as $ signal ) { pcntl_signal ( $ signal , function ( ) { self :: $ pause = true ; } ) ; } foreach ( $ this -> resumeSignals as $ signal ) { pcntl_signal ( $ signal , function ( ) { self :: $ pause = false ; } ) ; } } }
Sets signal handlers.

@inheritdoc
Sets signal handlers .