src/SAREhub/Commons/Process/PcntlSignals.php
public function dispatchSignal($signal)
    {
        if (isset($this->handlers[$signal])) {
            foreach ($this->handlers[$signal] as $namespaceHandlers) {
                foreach ($namespaceHandlers as $handler) {
                    $handler();
                }
            }
        }

        return $this;
    }
public function dispatchSignal($signal)
    {
        if (isset($this->handlers[$signal])) {
            foreach ($this->handlers[$signal] as $namespaceHandlers) {
                foreach ($namespaceHandlers as $handler) {
                    $handler();
                }
            }
        }

        return $this;
    }
public function dispatchSignal ( $ signal ) { if ( isset ( $ this -> handlers [ $ signal ] ) ) { foreach ( $ this -> handlers [ $ signal ] as $ namespaceHandlers ) { foreach ( $ namespaceHandlers as $ handler ) { $ handler ( ) ; } } } return $ this ; }
Dispatch signal on registered handlers.
@param int $signal
@return $this
Dispatch signal on registered handlers .