original_string: protected function isRunning($pid)
      {
          if (! $pid) {
              return false;
          }
  
          try {
              return Process::kill($pid, 0);
          } catch (Throwable $e) {
              return false;
          }
      }
code: protected function isRunning($pid)
      {
          if (! $pid) {
              return false;
          }
  
          try {
              return Process::kill($pid, 0);
          } catch (Throwable $e) {
              return false;
          }
      }
code_tokens: protected function isRunning ( $ pid ) { if ( ! $ pid ) { return false ; } try { return Process :: kill ( $ pid , 0 ) ; } catch ( Throwable $ e ) { return false ; } }
docstring: If Swoole process is running.
  
  @param int $pid
  
  @return bool
docstring_tokens: If Swoole process is running .