protected function isRunning($pid)
    {
        if (! $pid) {
            return false;
        }

        try {
            return Process::kill($pid, 0);
        } catch (Throwable $e) {
            return false;
        }
    }
protected function isRunning($pid)
    {
        if (! $pid) {
            return false;
        }

        try {
            return Process::kill($pid, 0);
        } catch (Throwable $e) {
            return false;
        }
    }
protected function isRunning ( $ pid ) { if ( ! $ pid ) { return false ; } try { return Process :: kill ( $ pid , 0 ) ; } catch ( Throwable $ e ) { return false ; } }
If Swoole process is running.

@param int $pid

@return bool
If Swoole process is running .