summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErik Faye-Lund <kusmabite@gmail.com>2010-08-26 09:48:55 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2010-08-26 09:49:44 +0200
commit0a051206787d83314ac69cf4c8857c0e880feaed (patch)
treedf9d7647e0a6a5295577b3c0dc97999362d0675c /lib
parent8951e0edc10352c785853a2d429397a7ad42a5b6 (diff)
downloadgnulib-0a051206787d83314ac69cf4c8857c0e880feaed.tar.gz
poll: return immediately on POLLHUP.
* lib/poll.c (poll): Always set timeout before wait_timeout is computed.
Diffstat (limited to 'lib')
-rw-r--r--lib/poll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/poll.c b/lib/poll.c
index aeb7a356fc..7c52cb6a26 100644
--- a/lib/poll.c
+++ b/lib/poll.c
@@ -505,7 +505,7 @@ poll (pfd, nfd, timeout)
if (sought)
handle_array[nhandles++] = h;
if (pfd[i].revents)
- wait_timeout = 0;
+ timeout = 0;
}
}