diff options
Diffstat (limited to 'lib/libpthread/thread/thr_poll.c')
-rw-r--r-- | lib/libpthread/thread/thr_poll.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_poll.c b/lib/libpthread/thread/thr_poll.c index 4967e6c..01916ad 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)) { |