original_string: protected function restart()
      {
          $pid = $this->getCurrentPid();
  
          if ($this->isRunning($pid)) {
              $this->stop();
          }
  
          $this->start();
      }
code: protected function restart()
      {
          $pid = $this->getCurrentPid();
  
          if ($this->isRunning($pid)) {
              $this->stop();
          }
  
          $this->start();
      }
code_tokens: protected function restart ( ) { $ pid = $ this -> getCurrentPid ( ) ; if ( $ this -> isRunning ( $ pid ) ) { $ this -> stop ( ) ; } $ this -> start ( ) ; }
docstring: Restart swoole http server.
docstring_tokens: Restart swoole http server .