X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Ffastcgi.c;h=4f475842c34321dc858a862b94b6c311a354cb92;hb=8f94dbb551783aad414b57ba6da4596f19dc80a6;hp=1bd520bd379ae30fe2bcf4c31123c2e5f4417b9a;hpb=41bb73186e41a5601407a4d39bfd8c6817c02d74;p=matches%2FMCTX3420.git diff --git a/server/fastcgi.c b/server/fastcgi.c index 1bd520b..4f47584 100644 --- a/server/fastcgi.c +++ b/server/fastcgi.c @@ -320,18 +320,8 @@ void * FCGI_RequestLoop (void *data) FCGIContext context = {0}; Log(LOGDEBUG, "First request..."); - //TODO: The FCGI_Accept here is blocking. - // That means that if another thread terminates the program, this thread - // will not terminate until the next request is made. while (FCGI_Accept() >= 0) { - if (Thread_Runstate() != RUNNING) - { - //TODO: Yeah... deal with this better :P - Log(LOGERR, "FIXME; FCGI gets request after other threads have finished."); - printf("Content-type: text/plain\r\n\r\n+++OUT OF CHEESE ERROR+++\n"); - break; - } Log(LOGDEBUG, "Got request #%d", context.response_number); ModuleHandler module_handler = NULL; @@ -370,7 +360,6 @@ void * FCGI_RequestLoop (void *data) } Log(LOGDEBUG, "Thread exiting."); - Thread_QuitProgram(false); // NOTE: Don't call pthread_exit, because this runs in the main thread. Just return. return NULL; }