protected function stopTerminatingProcessesThatAreHanging()
    {
        foreach ($this->terminatingProcesses as $process) {
            $timeout = $this->options->timeout;

            if ($process['terminatedAt']->addSeconds($timeout)->lte(Chronos::now())) {
                $process['process']->stop();
            }
        }
    }
protected function stopTerminatingProcessesThatAreHanging()
    {
        foreach ($this->terminatingProcesses as $process) {
            $timeout = $this->options->timeout;

            if ($process['terminatedAt']->addSeconds($timeout)->lte(Chronos::now())) {
                $process['process']->stop();
            }
        }
    }
protected function stopTerminatingProcessesThatAreHanging ( ) { foreach ( $ this -> terminatingProcesses as $ process ) { $ timeout = $ this -> options -> timeout ; if ( $ process [ 'terminatedAt' ] -> addSeconds ( $ timeout ) -> lte ( Chronos :: now ( ) ) ) { $ process [ 'process' ] -> stop ( ) ; } } }
Stop any terminating processes that are hanging too long.

@return void
Stop any terminating processes that are hanging too long .