From 0ebbbe30f1652c71133542f237f69a008395a8e7 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Sun, 21 Mar 2004 19:50:09 +0000 Subject: [PATCH] [Part of patch #909005] Set initial poll flags --- Lib/asyncore.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/asyncore.py b/Lib/asyncore.py index f5657ff9fe..6e128b1148 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -136,9 +136,9 @@ def poll2(timeout=0.0, map=None): pollster = select.poll() if map: for fd, obj in map.items(): - flags = 0 + flags = select.POLLERR | select.POLLHUP | select.POLLNVAL if obj.readable(): - flags = select.POLLIN + flags = select.POLLIN | select.POLLPRI if obj.writable(): flags = flags | select.POLLOUT if flags: -- 2.50.1