X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fstatserv.c;h=4def68a6beaa85b9aa846802cf225fbb46ee0f4e;hb=544555bd2d47e79737c3a5ecd794bbee697c8f63;hp=8598891744ceb5ccf18721218e68508842f8b7e4;hpb=08a57d6b7c0d759bf293fbad03d03363f1cb7bc5;p=yaz-moved-to-github.git diff --git a/src/statserv.c b/src/statserv.c index 8598891..4def68a 100644 --- a/src/statserv.c +++ b/src/statserv.c @@ -42,8 +42,6 @@ #if YAZ_POSIX_THREADS #include -#elif YAZ_GNU_THREADS -#include #endif #include @@ -947,18 +945,6 @@ static void listener(IOCHAN h, int event) pthread_t child_thread; pthread_create(&child_thread, 0, new_session, new_line); pthread_detach(child_thread); -#elif YAZ_GNU_THREADS - pth_attr_t attr; - pth_t child_thread; - - attr = pth_attr_new(); - pth_attr_set(attr, PTH_ATTR_JOINABLE, FALSE); - pth_attr_set(attr, PTH_ATTR_STACK_SIZE, 32*1024); - pth_attr_set(attr, PTH_ATTR_NAME, "session"); - yaz_log(YLOG_DEBUG, "pth_spawn begin"); - child_thread = pth_spawn(attr, new_session, new_line); - yaz_log(YLOG_DEBUG, "pth_spawn finish"); - pth_attr_destroy(attr); #else new_session(new_line); #endif @@ -1300,9 +1286,6 @@ int check_options(int argc, char **argv) #if YAZ_POSIX_THREADS control_block.dynamic = 0; control_block.threads = 1; -#elif YAZ_GNU_THREADS - control_block.dynamic = 0; - control_block.threads = 1; #else fprintf(stderr, "%s: Threaded mode not available.\n", me); return 1;