[openbeosnetteam] Re: It build again !

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: openbeosnetteam@xxxxxxxxxxxxx
  • Date: Wed, 06 Nov 2002 16:00:30 +0100 CET

Philippe Houdoin <philippe.houdoin@xxxxxxx> wrote:
> > That's not only simpler, but also needed because poll() should set 
> > POLLERR and POLLHUP even if those events aren't selected.
> Where's my poll() man page!?!
> Do you mean as drivers won't have to check if the event is monitored 
> or not but 
> simply notify, you will catch even errors events, which is needed by 
> these 
> POLLERR & POLLHUP?
> Just (too?) curious.

Exactly :-)
POLLERR, POLLHUP, and POLLNVAL must be set when the corresponding 
events occured, even if the listener hasn't registered them.
The poll() function itself can deal with POLLNVAL (which only means 
that the file descriptor was invalid), but the stack has to notify 
POLLERR and POLLHUP.

I think we currently already have some sort of a wrapper function for 
those events, so that it should be easy to extend it to handle this 
correctly (for all different versions of BeOS it should run on).

Adios...
   Axel.



Other related posts: