diff options
author | tradke <tradke@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2002-03-19 21:58:13 +0000 |
---|---|---|
committer | tradke <tradke@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2002-03-19 21:58:13 +0000 |
commit | 04e9f2aaf36d7c0e93e3c4f3985f4dfe9fbb1551 (patch) | |
tree | 74c3f27dd936d04871fc59554ce5c69e1ccb0be5 | |
parent | 8339cdb9f3214011af03f0140f90da0483cc15be (diff) |
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
-rw-r--r-- | src/Startup.c | 13 |
1 files 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 ? */ |