httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: cvs commit: apache-2.0/mpm/src/main http_config.c http_main.c
Date Sun, 11 Jul 1999 16:29:23 GMT
Brian Havard wrote:
> 
> On 10 Jul 1999 13:32:48 -0000, ben@hyperreal.org wrote:
> 
> >ben         99/07/10 06:32:48
> >
> >  Modified:    mpm/src/include ap_hooks.h
> >               mpm/src/main http_config.c http_main.c
> >  Log:
> >  Rudimentary debugging for hooks.
> >
> >  Revision  Changes    Path
> >  1.3       +4 -0      apache-2.0/mpm/src/include/ap_hooks.h
> 
> [...]
> 
> >  Index: http_main.c
> >  ===================================================================
> >  RCS file: /export/home/cvs/apache-2.0/mpm/src/main/http_main.c,v
> >  retrieving revision 1.3
> >  retrieving revision 1.4
> >  diff -u -r1.3 -r1.4
> >  --- http_main.c      1999/07/05 13:00:45     1.3
> >  +++ http_main.c      1999/07/10 13:32:47     1.4
> >  @@ -247,6 +247,7 @@
> >       pool *ptemp;            /* Pool for temporart config stuff */
> >       pool *pcommands;                /* Pool for -C and -c switches */
> >       extern char *optarg;
> >  +    extern int optind,optreset;
> 
> I don't know about anyone else but my getopt doesn't have this optreset. Is
> it important?

Well, if I'm going to preserve the original behaviour as much as I can,
yes. The reason being that hooks are defined early on, but I need
-DSHOW_HOOKS before they are, but there's also a pre-command-line hook
that has to come _after_ hooks have been hooked (obviously).

Is there a way to reset getopt at all on OS/2?

I'm sure we can find another way if not (for example, pull such things
out of the environment instead/as well).

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
     - Indira Gandhi

Mime
View raw message