httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@covalent.net
Subject Re: confusing HAVE_SYS_WAIT_H logic in src/include/ap_config.h
Date Wed, 17 May 2000 15:09:04 GMT

I believe that snippet was taken directly out of the old 1.3 configuration
system.  Also, look around at the wait code in threadproc/*, and make sure
we actually require both definitions, I don't think we do.

Ryan

On Wed, 17 May 2000, Jeff Trawick wrote:

> I was looking at moving the definition of ap_wait_t to APR and found
> this confusing logic.  It looks like <sys/wait.h> is included whether
> or not we HAVE_SYS_WAIT_H.  Is anyone familiar with this snippet of
> code?
> 
> #ifdef HAVE_SYS_WAIT_H
> 
> /* We have a POSIX wait interface */
> #include <sys/wait.h>
> #define ap_wait_t       int
> 
> #else /* HAVE_SYS_WAIT_H */
> 
> /* We don't have a POSIX wait interface. Assume we have the old-style. Is this
>  * a bad assumption? */
> #include <sys/wait.h>
> #define ap_wait_t       union wait
> #define WEXITSTATUS(status)	(int)((status).w_retcode)
> #define WTERMSIG(status)	(int)((status).w_termsig)
> 
> #endif /* HAVE_SYS_WAIT_H */
> 
> 
> 
> -- 
> Jeff Trawick | trawick@ibm.net | PGP public key at web site:
>      http://www.geocities.com/SiliconValley/Park/9289/
>           Born in Roswell... married an alien...
> 


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


Mime
View raw message