commit | 0ebbbe30f1652c71133542f237f69a008395a8e7 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Sun Mar 21 19:50:09 2004 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Sun Mar 21 19:50:09 2004 +0000 |
tree | b52646837824540da31ea7b73aecbca70167cf17 | |
parent | 68522b18956b4417f5ab53ad513a6922370c9f2e [diff] |
[Part of patch #909005] Set initial poll flags
diff --git a/Lib/asyncore.py b/Lib/asyncore.py index f5657ff..6e128b1 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py
@@ -136,9 +136,9 @@ 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: