From a58d400d5c39f651e628e96219f7eade7a206607 Mon Sep 17 00:00:00 2001 From: sanjiyan Date: Fri, 14 Nov 2003 14:50:34 +0000 Subject: [PATCH] fixing the poll call in io_waituntil2 --- io/io_waituntil2.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/io/io_waituntil2.c b/io/io_waituntil2.c index 8d51ce6..e53ee4f 100644 --- a/io/io_waituntil2.c +++ b/io/io_waituntil2.c @@ -182,12 +182,7 @@ dopoll: } } p=array_start(&io_pollfds); -again: - while ((i=poll(array_start(&io_pollfds),r,milliseconds))==0); - if (i==-1) { - if (errno==EINTR) goto again; - return -1; - } + if ((i=poll(array_start(&io_pollfds),r,milliseconds))<1) return -1; for (j=r-1; j>=0; --j) { io_entry* e=array_get(&io_fds,sizeof(io_entry),p->fd); if (p->revents&(POLLERR|POLLHUP)) {