httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject Re: dup2() on Windows
Date Thu, 17 Feb 2000 14:07:57 GMT
On Wed, 16 Feb 2000, Roy T. Fielding wrote:

> >> I have two solutions available. I can use #ifdef WIN32 blocks in
> >> ap_open_file(), or extend APR with the following new functions:
> >> 
> >> ap_dup2stderr()
> >> ap_dup2stdin()
> >> ap_dup2stdout()
> 
> Why not just check the argument to see if the fd matches one of the
> standard handles and allow it for those cases, returning an error on
> win32 for the others?

+1.  We can document this easily, and this way we aren't adding functions
that can never be removed.  :-)

Ryan

Come to the first official Apache Software Foundation
Conference!!!   <http://ApacheCon.Com/>

_______________________________________________________________________________
Ryan Bloom                        	rbb@ntrnet.net
2121 Stonehenge Dr. Apt #3
Raleigh, NC 27615		Ryan Bloom -- thinker, adventurer, artist,
				     writer, but mostly, friend.
-------------------------------------------------------------------------------


Mime
View raw message