poll: return immediately on POLLHUP.
[gnulib.git] / lib / poll.c
index aeb7a35..7c52cb6 100644 (file)
@@ -505,7 +505,7 @@ poll (pfd, nfd, timeout)
           if (sought)
             handle_array[nhandles++] = h;
           if (pfd[i].revents)
-            wait_timeout = 0;
+            timeout = 0;
         }
     }