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

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Thu, 30 Jan 2020 10:52:15 -0000

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

 Just to be clear, the missing brackets I was referring to is in commit
 https://git.haiku-os.org/haiku/commit/?id=hrev51343

 {{{
 @@ -616,14 +616,17 @@ Inode::NotifyEndClosed(bool writer)

                         if (fReadSelectSyncPool)
 notify_select_event_pool(fReadSelectSyncPool, B_SELECT_DISCONNECTED);
 +
 notify_select_event_pool(fReadSelectSyncPool, B_SELECT_ERROR);
 +
 notify_select_event_pool(fReadSelectSyncPool, B_SELECT_READ);
                 }
 }}}
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/7859#comment:25>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: