On Mon, 8 Sep 2003, Lev Walkin wrote: LW> > However, I found a (really stupid, yeah) bug: the first parameter of select() LW> > in this test case should be fd+1, not 1 ;-) LW> LW> Unfortunately, this could not possibly be the case, if your system's LW> documentation is in sync with the reality: LW> LW> === select(2) === LW> For historical reasons, LW> select() will always examine the first 256 descriptors. LW> === cut ===
Well, I suppose either this part of the documentation is obsolete, or something else went wrong, but: this select() works with fd+1 on both 4.8-R and 4.9-PRE, and does not work with both 1 and fd as nfd. I check the fd to be 3 in all cases. I did not dig into select() sources yet, though. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- [EMAIL PROTECTED] *** ------------------------------------------------------------------------ _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"