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

  • From: "phoudoin" <trac@xxxxxxxxxxxx>
  • Date: Wed, 26 Jul 2017 16:26:08 -0000

#7859: poll() on fd of an exited process returns wrong revents
----------------------------+----------------------------
   Reporter:  scgtrp        |      Owner:  phoudoin
       Type:  bug           |     Status:  in-progress
   Priority:  high          |  Milestone:  R1/beta1
  Component:  System/POSIX  |    Version:  R1/Development
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  1             |   Platform:  All
----------------------------+----------------------------

Comment (by phoudoin):

 With the patch above, the test program now behave as expected.
 I check POLLHUP is returned not only on first poll() after the writer is
 gone and no more data but all others poll() after that, too.

--
Ticket URL: <https://dev.haiku-os.org/ticket/7859#comment:7>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: