aboutsummaryrefslogtreecommitdiff
path: root/src/Startup.c
diff options
context:
space:
mode:
authorgoodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2000-09-15 12:45:27 +0000
committergoodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2000-09-15 12:45:27 +0000
commit9ca8518895939d3ae82c937bed7f2b545a9f9e39 (patch)
tree6a4f12a4f4c472bffac1dbffb2b5a877bf2c0beb /src/Startup.c
parent3c4f4b1e6a1de4d6e16a70af4d11fc11ddb11da9 (diff)
Made parallel aware.
Added stuff for parameter steering. See doc/Steering.txt. Added stuff for HTTP Basic authentication. See doc/Auth.txt. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@9 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/Startup.c')
-rw-r--r--src/Startup.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/Startup.c b/src/Startup.c
index ef2b4ba..495de8b 100644
--- a/src/Startup.c
+++ b/src/Startup.c
@@ -48,7 +48,10 @@ int HTTP_Startup(void)
{
while(1)
{
- HTTP_Poll(NULL, 10000,0);
+ if(CCTK_MyProc(NULL) == 0)
+ {
+ HTTP_Poll(NULL, 10000,0);
+ }
}
}
@@ -74,11 +77,14 @@ void HTTP_Work(CCTK_ARGUMENTS)
DECLARE_CCTK_ARGUMENTS
DECLARE_CCTK_PARAMETERS
- HTTP_Poll(cctkGH, timeout_seconds, timeout_useconds);
+ if(CCTK_MyProc(cctkGH) == 0)
+ {
+ HTTP_Poll(cctkGH, timeout_seconds, timeout_useconds);
+ }
}
/*@@
- @routine HTTP_Startup
+ @routine HTTP_Shutdown
@date Wed Sep 13 21:26:56 2000
@author Tom Goodale
@desc
@@ -93,7 +99,11 @@ void HTTP_Work(CCTK_ARGUMENTS)
@@*/
int HTTP_Shutdown(void)
{
- HTTP_ShutdownServer();
+
+ if(CCTK_MyProc(NULL) == 0)
+ {
+ HTTP_ShutdownServer();
+ }
return 0;
}