void WebInterface::stop() { stop_flag_ = true; FCGX_ShutdownPending(); LOG_DBG("Stopping web-interface thread"); if(worker_thread_) { worker_thread_->join(); delete worker_thread_; } LOG_DBG("Web-interface thread stopped"); delete mutex_; delete uri_regex_; delete uri_regex_query_; delete uri_regex_file_; }
void signalCatch(int s){ FCGX_ShutdownPending(); }
void shutdown() override { FCGX_ShutdownPending(); }
static void fcgi_term_handler(int sig) { FCGX_ShutdownPending(); }