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;
|
|