[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modules
Subject: Re: [apache-modules] fopen fails in Apache
From: Joe Orton <jorton () redhat ! com>
Date: 2005-10-31 16:23:54
Message-ID: 20051031162354.GA31056 () redhat ! com
[Download RAW message or body]
On Fri, Oct 28, 2005 at 09:56:28AM +0100, Nick Kew wrote:
> On Friday 28 October 2005 09:22, Julien ALLANOS wrote:
> > Nick Kew a écrit :
> > > On Friday 28 October 2005 08:30, Julien ALLANOS wrote:
> > >>Check errno.
> > >
> > > If you ever do that, something *must* be wrong. errno is not,
> > > in general, thread safe, so it has no place in an Apache module.
> >
> > Well, man errno
>
> That'll be TFM for your platform
>
> > says "errno is thread-local; setting it in one thread
> > does not affect its value in any other thread.", though
> > http://httpd.apache.org/docs/2.0/developer/thread_safety.html#errno says
> > the opposite...
>
> Apache is cross-platform, so can't make that kind of assumption.
It is very very safe to assume that errno is thread-local if threads are
supported, none of the ANSI C library would work otherwise, and
certainly not much of APR.
joe
---------------------------------------------------------------------
To unsubscribe, e-mail: apache-modules-unsubscribe@covalent.net
For additional commands, e-mail: apache-modules-help@covalent.net
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic