protected function release()
 {
     if (count($this->operations) > 0) {
         foreach ($this->operations as $k => $val) {
             $this->executeSql($k);
         }
     }
     parent::release();
     // TODO: Change the autogenerated stub
 }
 /**
  * 信号处理器
  * @return bool
  */
 public function beforeAction($action)
 {
     if (parent::beforeAction($action)) {
         if (!extension_loaded('pcntl')) {
             $this->stderr("Pcntl extension is not loaded.If you don't want to handle process signal, please set {handleSignal} to false" . PHP_EOL);
             exit;
         }
         $this->parseFullName();
         declare (ticks=1);
         pcntl_signal(SIGTERM, [$this, 'signalHandler']);
         pcntl_signal(SIGHUP, [$this, 'signalHandler']);
         pcntl_signal(SIGINT, [$this, 'signalHandler']);
         return true;
     }
     return false;
 }