original_string: protected function listenForSignals()
      {
          pcntl_async_signals(true);
  
          pcntl_signal(SIGTERM, function () {
              $this->shouldQuit = true;
          });
  
          pcntl_signal(SIGUSR2, function () {
              $this->paused = true;
          });
  
          pcntl_signal(SIGCONT, function () {
              $this->paused = false;
          });
      }
code: protected function listenForSignals()
      {
          pcntl_async_signals(true);
  
          pcntl_signal(SIGTERM, function () {
              $this->shouldQuit = true;
          });
  
          pcntl_signal(SIGUSR2, function () {
              $this->paused = true;
          });
  
          pcntl_signal(SIGCONT, function () {
              $this->paused = false;
          });
      }
code_tokens: protected function listenForSignals ( ) { pcntl_async_signals ( true ) ; pcntl_signal ( SIGTERM , function ( ) { $ this -> shouldQuit = true ; } ) ; pcntl_signal ( SIGUSR2 , function ( ) { $ this -> paused = true ; } ) ; pcntl_signal ( SIGCONT , function ( ) { $ this -> paused = false ; } ) ; }
docstring: Enable async signals for the process.
  
  @return void
docstring_tokens: Enable async signals for the process .