yhttpd: try to fix shutdown problems, probably directfb related

Origin commit data
------------------
Commit: a42b1ca512
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2010-02-28 (Sun, 28 Feb 2010)
This commit is contained in:
Stefan Seyfried
2010-02-28 19:54:00 +01:00
parent 795f2c9228
commit 55e1eca230
2 changed files with 3 additions and 0 deletions

View File

@@ -107,6 +107,7 @@ void yhttpd_reload_config() {
#ifndef Y_CONFIG_BUILD_AS_DAEMON
void * nhttpd_main_thread(void *) {
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, 0);
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
aprintf("Webserver %s tid %ld\n", WEBSERVERNAME, syscall(__NR_gettid));
yhttpd = new Cyhttpd();
//CLogging::getInstance()->setDebug(true);