src/SAREhub/Commons/Process/PcntlSignals.php
public function install(array $signals)
    {
        if (self::isSupported()) {
            $callback = [$this, 'dispatchSignal'];
            foreach ($signals as $signal) {
                \pcntl_signal($signal, $callback);
            }
        };
    }
public function install(array $signals)
    {
        if (self::isSupported()) {
            $callback = [$this, 'dispatchSignal'];
            foreach ($signals as $signal) {
                \pcntl_signal($signal, $callback);
            }
        };
    }
public function install ( array $ signals ) { if ( self :: isSupported ( ) ) { $ callback = [ $ this , 'dispatchSignal' ] ; foreach ( $ signals as $ signal ) { \ pcntl_signal ( $ signal , $ callback ) ; } } ; }
Installs selected signal
@param array $signals
Installs selected signal