private function restoreSignalHandlers($terminable = true) { if (function_exists('pcntl_signal') && !$terminable) { pcntl_signal(SIGTERM, SIG_DFL); pcntl_signal(SIGINT, SIG_DFL); } }