httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <>
Subject Re: [PATCH] a bundle of multithreading changes
Date Sun, 07 Dec 1997 15:56:01 GMT
Paul Sutton wrote:
> On Mon, 1 Dec 1997, Dean Gaudet wrote:
> > I haven't looked at the patch yet, but the feature list looks really good
> > :)  Thanks for tracking the unix work.
> In case it wasn't clear, I was proposing this patch for the current code
> base. It fixes a lot of problems with the MT implementation on Win32 at
> the moment. Certainly something needs doing before we can do a full
> release of 1.3 on Win32.

BTW, I like the patch in principle. Haven't tested it, though.

> > >  - In child_sub_main() (the "worker" thread code) used ptrans for
> > >    the temporary pool, instead of pchild - now consistent with
> > >    Unix child_main() [Incidently I'm not sure why ptrans is a global,
> > >    since it (should) only be used within child_main()?]
> >
> > ptrans is static now after my changes that created pchild.  I think if you
> > make it local to child_main you end up with setjmp/longjmp issues.
> I guess so, but surely MT (and certainly multi-fiber) code shouldn't
> really be doing longjmp's?

Why not?

> I've pretty much convinced myself that we
> should strip out all the signal stuff from the Win32 code, and work with
> events and polling/blocking-on-events to simulate signals. That's what
> I've done to simulate to a graceful restart SIGUSR1 signal anyway.

Yeah - there's not really a way to do signals, but it may be nice to
emulate them as low down as possible (to keep as much code common as



Ben Laurie            |Phone: +44 (181) 735 0686|Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|
and Technical Director|Email: |Apache-SSL author
A.L. Digital Ltd,     |
London, England.      |"Apache: TDG"

View raw message