summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_poll.c
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>1999-08-30 00:02:08 +0000
committerDaniel Eischen <deischen@FreeBSD.org>1999-08-30 00:02:08 +0000
commit3e12058d250979a442f182191a5ce1ac30e883ee (patch)
tree13739692ec180d8ab98c172f455828a41ce0702a /lib/libpthread/thread/thr_poll.c
parent293515f6787b4ef5ff8bce69ca6b5d5cd7f4cacd (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_poll.c')
-rw-r--r--lib/libpthread/thread/thr_poll.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_poll.c b/lib/libpthread/thread/thr_poll.c
index 4967e6c78afd..01916ad1b4e1 100644
--- a/lib/libpthread/thread/thr_poll.c
+++ b/lib/libpthread/thread/thr_poll.c
@@ -67,7 +67,8 @@ poll(struct pollfd *fds, unsigned int nfds, int timeout)
_thread_kern_set_timeout(&ts);
} else if (timeout < 0) {
/* a timeout less than zero but not == INFTIM is invalid */
- return (EINVAL);
+ errno = EINVAL;
+ return (-1);
}
if (((ret = _thread_sys_poll(fds, numfds, 0)) == 0) && (timeout != 0)) {