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)   
|