[haiku-bugs] Re: [Haiku] #7859: poll() on fd of an exited process returns wrong revents

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Sat, 23 Jul 2011 15:23:04 -0000

#7859: poll() on fd of an exited process returns wrong revents
----------------------------+----------------------------
   Reporter:  scgtrp        |      Owner:  nobody
       Type:  bug           |     Status:  new
   Priority:  normal        |  Milestone:  R1
  Component:  System/POSIX  |    Version:  R1/Development
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  All
----------------------------+----------------------------
Changes (by bonefish):

 * version:  R1/alpha3 => R1/Development


Comment:

 The immediate problem is the FIFO code [http://dev.haiku-
 os.org/browser/haiku/trunk/src/system/kernel/fs/fifo.cpp?rev=42116#L694
 notifying a read event] when there aren't any more writers. It should
 notify a `B_SELECT_DISCONNECTED` instead. It looks like the code is in
 need of a general review with respect to `B_SELECT_ERROR` and
 `B_SELECT_DISCONNECTED` notifications.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7859#comment:1>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: