diff options
author | jshalf <jshalf@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2002-01-30 19:48:56 +0000 |
---|---|---|
committer | jshalf <jshalf@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2002-01-30 19:48:56 +0000 |
commit | 25248090dba6b3121ee822594cc28d8ee18092e5 (patch) | |
tree | a7fa3cd6b5da3abe48a426d335b9d9b4e901cc32 /src/Startup.c | |
parent | 521cc3d05a5c150bb9d4df70b2ac684e8dbfaef5 (diff) |
Minor mods to announce selected http port number when
hunting is on.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@152 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/Startup.c')
-rw-r--r-- | src/Startup.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Startup.c b/src/Startup.c index f29037a..5c2928f 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -83,12 +83,14 @@ static int thread_started = 0; @endhistory @@*/ + +static int http_actualport=5555; /* bad bad static var (should use GH) */ int HTTP_Startup(void) { DECLARE_CCTK_PARAMETERS httpState state; - + http_actualport=port; if(CCTK_MyProc(NULL) == 0) { /* Does the server provide any pages by default ? */ @@ -97,7 +99,7 @@ int HTTP_Startup(void) HTTP_RegisterPages(); } - HTTP_SetupServer(port, queue_length, hunt); + http_actualport = HTTP_SetupServer(port, queue_length, hunt); } /* Do we need to redirect to a master server ? */ |