httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: cvs commit: apache-2.0/src/main http_main.c
Date Thu, 07 Oct 1999 23:09:12 GMT
this, plus the other recent change for main() make me think that main()
should be in the MPM or somewhere else platform specific, and the main()
in this file might be called http_main()... i think this was suggested for
another reason too, but i forget.

Dean

On 7 Oct 1999 martin@hyperreal.org wrote:

> martin      99/10/07 14:48:31
> 
>   Modified:    src/main http_main.c
>   Log:
>   ap_server_argv0 was undefined. Use a simple default (basename(argv[0]))
>   
>   Revision  Changes    Path
>   1.15      +9 -0      apache-2.0/src/main/http_main.c
>   
>   Index: http_main.c
>   ===================================================================
>   RCS file: /export/home/cvs/apache-2.0/src/main/http_main.c,v
>   retrieving revision 1.14
>   retrieving revision 1.15
>   diff -u -r1.14 -r1.15
>   --- http_main.c	1999/10/07 20:47:53	1.14
>   +++ http_main.c	1999/10/07 21:48:30	1.15
>   @@ -289,6 +289,15 @@
>        ap_context_t *ptemp;		/* Pool for temporary config stuff */
>        ap_context_t *pcommands;		/* Pool for -C and -c switches */
>    
>   +#ifndef WIN32
>   +    if ((ap_server_argv0 = strrchr(argv[0], '/')) != NULL)
>   +#else
>   +    if ((ap_server_argv0 = strrchr(argv[0], '\\')) != NULL)
>   +#endif
>   +        ++ap_server_argv0;
>   +    else
>   +	ap_server_argv0 = argv[0];
>   +
>        ap_util_uri_init();
>    
>        g_pHookPool=pglobal;
>   
>   
>   
> 


Mime
View raw message