From 47e9467b27a060cc84ef19a4244caa04980a6d2b Mon Sep 17 00:00:00 2001 From: tradke Date: Thu, 3 May 2001 20:26:56 +0000 Subject: Set the "HTTPD::terminate" parameter at shutdown in order to flag termination to the polling thread. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@123 1faa4e14-9dd3-4be0-9f0e-ffe519881164 --- src/Startup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Startup.c') diff --git a/src/Startup.c b/src/Startup.c index aa579f0..09aa87f 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -204,9 +204,11 @@ int HTTP_Shutdown(void) { DECLARE_CCTK_PARAMETERS #ifdef CCTK_PTHREADS - /* Wait for the polling thread to exit */ + /* Set the "HTTPD::terminate" parameter to flag termination + to the polling thread and wait for it to exit */ if(CCTK_MyProc(NULL) == 0 && use_pthreads && thread_started) { + CCTK_ParameterSet("terminate", CCTK_THORNSTRING, "yes"); pthread_join(polling_thread, NULL); } #endif -- cgit v1.2.3