On Sat, Aug 25, 2007 at 12:47:57AM -0700, David Schwartz wrote:
> > Yes?  If so, the above paragraph or something similar should be
> > documented somewhere important (e.g. the manpages).
> 
> That's one way to put what I'm saying. I agree it needs to be repeated more
> often, that's one of the reasons I repeat it as often as I can.

I'm afraid it's worse than just the man pages. 

After thinking for a fleeting moment that what you were
saying made no sense, then thinking some more and thinking
it did make sense, I went back to my standard bible
"Advanced Progamming in the Unix environment" (Stevens &
Rago), which actually explicitely states ("select and
pselect functions", p475):

"With [select's] return information, we can call the
appropriate I/O function (usually read or write) and know
that the function won't block."

I guess this should read "call the I/O function and know it
wouldn't have blocked if we'd called it instead of calling
select".

> > Not every day I learn something new.  Though I'm slightly horrified
> > because my code base is extensive and I do quite a bit of socket
> > programming...and I've been doing it wrong for about 7 years.  This is
> > apparently going to be a LONG weekend.

If even the reference litterature gets it wrong...

Y. -- who'll be writing better code from now on

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to