You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by sameer <sa...@c2.net> on 1996/10/02 03:11:29 UTC

Re: Question about Apache on Solaris (fwd)

	I've been corresponding with someone at Sun trying to get the
Solaris fd/stdio bug fixed and he offered the following ugly
workaround. I was wondering what people thought of it:

Forwarded message:
> OK, I got it now. An evil thought: how about, in your library, grabbing a
> few low numbered fd's every time you want to open a new fd? Something like:
> 
> 	open a few fd's (guaranteed to be low numbered, Solaris reuses fd
> 	number)
> 	then open your fd (will be high numbered)
> 	close the fd's you grabbed.
> 
> Thus, it'll be guaranteed that there will be a block of fd's below 256 for
> getpwnam and friends to work with.. Just a thought. Evil.. :)
> 

-- 
Sameer Parekh					Voice:   510-986-8770
C2Net						FAX:     510-986-8777
The Internet Privacy Provider
http://www.c2.net/				sameer@c2.net