You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dean Gaudet <dg...@arctic.org> on 1999/10/08 01:09:12 UTC

Re: cvs commit: apache-2.0/src/main http_main.c

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;
>   
>   
>   
> 


Re: cvs commit: apache-2.0/src/main http_main.c

Posted by Dean Gaudet <dg...@arctic.org>.
no i think it was something to do with shared libraries... but that's
another good reason.

Dean

On Thu, 7 Oct 1999, Manoj Kasichainula wrote:

> On Thu, Oct 07, 1999 at 04:09:12PM -0700, Dean Gaudet wrote:
> > 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.
> 
> It would make platform-specific command-line arguments possible. Is
> that it?
> 
> -- 
> Manoj Kasichainula - manojk at io dot com - http://www.io.com/~manojk/
> 
> 


Re: cvs commit: apache-2.0/src/main http_main.c

Posted by Manoj Kasichainula <ma...@io.com>.
On Thu, Oct 07, 1999 at 04:09:12PM -0700, Dean Gaudet wrote:
> 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.

It would make platform-specific command-line arguments possible. Is
that it?

-- 
Manoj Kasichainula - manojk at io dot com - http://www.io.com/~manojk/