From b02f501306799bd579134ffe3d74429cfb4bc7ba Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 18 Apr 1999 10:21:47 +0000 Subject: Update. 1999-04-18 Thorsten Kukuk * sunrpc/Makefile: Remove special handling of bootparam.x, add rpcsvc/bootparam.h to headers. * sunrpc/rpcsvc/bootparam.h: New, for backward compatibility. * sunrpc/rpcsvc/bootparam.x: Renamed to... * sunrpc/rpcsvc/bootparam_prot.x: ...this. --- sysdeps/unix/bsd/poll.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sysdeps/unix/bsd/poll.c') diff --git a/sysdeps/unix/bsd/poll.c b/sysdeps/unix/bsd/poll.c index 5f65e76122..a1dc3e0268 100644 --- a/sysdeps/unix/bsd/poll.c +++ b/sysdeps/unix/bsd/poll.c @@ -104,7 +104,7 @@ __poll (fds, nfds, timeout) tv.tv_sec = timeout / 1000; tv.tv_usec = (timeout % 1000) * 1000; - do + while (1) { ready = __select (maxfd + 1, rset, wset, xset, timeout == -1 ? NULL : &tv); @@ -169,9 +169,12 @@ __poll (fds, nfds, timeout) else if (errno == EBADF) f->revents |= POLLNVAL; } + /* Try again. */ + continue; } + + break; } - while (ready == 0); if (ready > 0) for (f = fds; f < &fds[nfds]; ++f) -- cgit 1.4.1