From: Andrew M. Kuchling Date: Sun, 21 Mar 2004 19:50:09 +0000 (+0000) Subject: [Part of patch #909005] Set initial poll flags X-Git-Tag: v2.4a1~626 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0ebbbe30f1652c71133542f237f69a008395a8e7;p=thirdparty%2FPython%2Fcpython.git [Part of patch #909005] Set initial poll flags --- diff --git a/Lib/asyncore.py b/Lib/asyncore.py index f5657ff9fe2e..6e128b114868 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: