Index: ossp-pkg/pth/pth_high.c RCS File: /v/ossp/cvs/ossp-pkg/pth/pth_high.c,v rcsdiff -q -kk '-r1.93' '-r1.94' -u '/v/ossp/cvs/ossp-pkg/pth/pth_high.c,v' 2>/dev/null --- 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;