Net/Notifier/Server.php
public function handleSignal($signal)
    {
        switch ($signal) {
        case SIGINT:
            $this->log(
                'Received SIGINT, shutting down.' . PHP_EOL,
                Net_Notifier_Logger::VERBOSITY_ALL
            );
            $this->moribund = true;
            break;

        case SIGTERM:
            $this->log(
                'Received SIGTERM, shutting down.' . PHP_EOL,
                Net_Notifier_Logger::VERBOSITY_ALL
            );
            $this->moribund = true;
            break;
        }
    }
public function handleSignal($signal)
    {
        switch ($signal) {
        case SIGINT:
            $this->log(
                'Received SIGINT, shutting down.' . PHP_EOL,
                Net_Notifier_Logger::VERBOSITY_ALL
            );
            $this->moribund = true;
            break;

        case SIGTERM:
            $this->log(
                'Received SIGTERM, shutting down.' . PHP_EOL,
                Net_Notifier_Logger::VERBOSITY_ALL
            );
            $this->moribund = true;
            break;
        }
    }
public function handleSignal ( $ signal ) { switch ( $ signal ) { case SIGINT : $ this -> log ( 'Received SIGINT, shutting down.' . PHP_EOL , Net_Notifier_Logger :: VERBOSITY_ALL ) ; $ this -> moribund = true ; break ; case SIGTERM : $ this -> log ( 'Received SIGTERM, shutting down.' . PHP_EOL , Net_Notifier_Logger :: VERBOSITY_ALL ) ; $ this -> moribund = true ; break ; } }
Handles UNIX signals

SIGTERM and SIGINT can be used to trigger a clean shutdown of
this server.

@param integer $signal the signal received.

@return void
Handles UNIX signals