From 04e9f2aaf36d7c0e93e3c4f3985f4dfe9fbb1551 Mon Sep 17 00:00:00 2001 From: tradke Date: Tue, 19 Mar 2002 21:58:13 +0000 Subject: Print a warning if 'httpd::use_pthreads' is set to "yes" but Cactus wasn't configured with PTHREADS. This closes PR CactusConnect/899. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@158 1faa4e14-9dd3-4be0-9f0e-ffe519881164 --- src/Startup.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Startup.c b/src/Startup.c index 5c2928f..440a888 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -87,10 +87,19 @@ static int thread_started = 0; static int http_actualport=5555; /* bad bad static var (should use GH) */ int HTTP_Startup(void) { + httpState state; DECLARE_CCTK_PARAMETERS - httpState state; - http_actualport=port; + +#ifndef CCTK_PTHREADS + if (use_pthreads) + { + CCTK_WARN (1, "Parameter 'HTTPD::use_pthreads' is set to \"yes\" but you " + "didn't configure with PTHREADS. Setting will be ignored."); + } +#endif + + http_actualport = port; if(CCTK_MyProc(NULL) == 0) { /* Does the server provide any pages by default ? */ -- cgit v1.2.3