OSSP CVS Repository

ossp - Check-in [2776]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2776
Date: 2002-Nov-08 13:38:39 (local)
2002-Nov-08 12:38:39 (UTC)
User:rse
Branch:
Comment: Fix poll(2) semantics: remove POLLRDNORM from polling result if POLLHUP is detected.

Hint by: Paolo Bonzini <bonzini@gnu.org>

Tickets:
Inspections:
Files:
ossp-pkg/pth/ChangeLog      1.592 -> 1.593     4 inserted, 0 deleted
ossp-pkg/pth/pth_high.c      1.99 -> 1.100     1 inserted, 0 deleted

ossp-pkg/pth/ChangeLog 1.592 -> 1.593

--- ChangeLog    2002/11/08 11:32:17     1.592
+++ ChangeLog    2002/11/08 12:38:39     1.593
@@ -21,6 +21,10 @@
                   
   Changes between 2.0b0 and 2.0b1 (07-Nov-2002 to xx-Nov-2002)
 
+   *) Fix poll(2) semantics: remove POLLRDNORM from polling
+      result if POLLHUP is detected.
+      [Paolo Bonzini <bonzini@gnu.org>]
+
    *) Updated PORTING file to include community feedback from
       the last months.
       [Ralf S. Engelschall]


ossp-pkg/pth/pth_high.c 1.99 -> 1.100

--- pth_high.c   2002/11/07 15:21:06     1.99
+++ pth_high.c   2002/11/08 12:38:39     1.100
@@ -541,6 +541,7 @@
                     if (   errno == ESHUTDOWN    || errno == ECONNRESET
                         || errno == ECONNABORTED || errno == ENETRESET) {
                         pfd[i].revents &= ~(POLLIN);
+                        pfd[i].revents &= ~(POLLRDNORM);
                         pfd[i].revents |= POLLHUP;
                         ok--;
                     }

CVSTrac 2.0.1