home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.protocols.tcp-ip      TCP and IP network protocols.      14,669 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 13,123 of 14,669   
   Casper H.S. Dik to Ripunjay Tripathi   
   Re: On implementation of select and poll   
   28 Oct 09 10:53:33   
   
   50d0dfed   
   From: Casper.Dik@Sun.COM   
      
   Ripunjay Tripathi  writes:   
      
   >> If, when you call 'select' or 'poll', any descriptors in your set are   
   >> ready for the operation selected, and none of them are invalid   
   >> descriptors, *all* ready descriptors will be reported.   
   >>   
   >> If any of your descriptors are invalid, no events will be reported to   
   >> you. You will just get a 'EBADF'/'EINVAL' error.   
   >>   
   >> If a descriptor becomes invalid while a 'select' or 'poll' is pending   
   >> for it, the results are undefined.   
   >>   
   >> DS   
      
   >David,   
      
   >I get a doubt on your statement about your "UNDEFINED" stuff.   
   >About every OS atleast LINUX and AIX have POLLINVAL and POLLHUP in   
   >case fd goes invalid while in action.   
   >I request a clarification.   
      
   Same is true for Solaris.   
      
   (Select is clearly not very useful when one of the fds is bad)   
      
   Casper   
   --   
   Expressed in this posting are my opinions.  They are in no way related   
   to opinions held by my employer, Sun Microsystems.   
   Statements on Sun products included here are not gospel and may   
   be fiction rather than truth.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca