httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@covalent.net
Subject Re: cvs commit: apache-2.0/src/support ab.c
Date Mon, 31 Jul 2000 15:38:16 GMT
On 31 Jul 2000, Jeff Trawick wrote:

> rbb@covalent.net writes:
> 
> > On 31 Jul 2000 trawick@locus.apache.org wrote:
> > 
> > > trawick     00/07/31 07:50:55
> > > 
> > >   Modified:    src      CHANGES
> > >                src/support ab.c
> > >   Log:
> > >   Don't use perror() to report the failure of an APR function.
> > >   Introduce apr_err() for that purpose.
> > 
> > Why shouldn't we use perror to report the failure of an APR function?
> > Underneath APR, we are using standard Unix calls.  I would think perror
> > would give us a bit more information.  Is it not portable?
> 
> perror() is portable, but not in combination with APR.
> 
> Consider Win32...  (ab works on Windows)
> 
> perror() on Windows (like everywhere else) assumes that errno has the
> error code; APR on Windows uses functions which don't set errno.
> Thus, perror() probably won't display the correct information.

Ahhh.....  That makes sense.  Thanks

Ryan

_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------


Mime
View raw message