OSSP CVS Repository

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

Check-in Number: 2666
Date: 2002-Oct-25 13:59:18 (local)
2002-Oct-25 11:59:18 (UTC)
User:rse
Branch:
Comment: also complain on EINVAL immediately without asking the scheduler
Tickets:
Inspections:
Files:
ossp-pkg/pth/pth_high.c      1.93 -> 1.94     2 inserted, 2 deleted

ossp-pkg/pth/pth_high.c 1.93 -> 1.94

--- pth_high.c   2002/10/25 11:56:16     1.93
+++ pth_high.c   2002/10/25 11:59:18     1.94
@@ -378,8 +378,8 @@
             return 0;
         }
     }
-    if (rc < 0 && errno == EBADF)
-        return pth_error(-1, EBADF);
+    if (rc < 0 && (errno == EINVAL || errno == EBADF))
+        return pth_error(-1, errno);
 
     /* suspend current thread until one fd is ready or the timeout occurred */
     rc = -1;

CVSTrac 2.0.1