private function sendTERMSignal()
    {
        if (!$this->hasReceivedHUP) {
            $this->hasReceivedHUP = true;
            try {
                $this->process->signal(SIGTERM);
            } catch (\Symfony\Component\Process\Exception\LogicException $e) {
                //In case the process ends between checking and actually sending the signal
            }
        }
    }
private function sendTERMSignal()
    {
        if (!$this->hasReceivedHUP) {
            $this->hasReceivedHUP = true;
            try {
                $this->process->signal(SIGTERM);
            } catch (\Symfony\Component\Process\Exception\LogicException $e) {
                //In case the process ends between checking and actually sending the signal
            }
        }
    }
private function sendTERMSignal ( ) { if ( ! $ this -> hasReceivedHUP ) { $ this -> hasReceivedHUP = true ; try { $ this -> process -> signal ( SIGTERM ) ; } catch ( \ Symfony \ Component \ Process \ Exception \ LogicException $ e ) { //In case the process ends between checking and actually sending the signal } } }
Sends a signal to the process, this method prevents the signal from being sent twice

@return void
Sends a signal to the process this method prevents the signal from being sent twice