Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
828eec0f
Commit
828eec0f
authored
Nov 05, 2011
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asyncore: POLLERR, POLLHUP and POLLNVAL are ignored when passed as input flag
to poll(2): don't set them.
parent
f6e5aea4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
Lib/asyncore.py
Lib/asyncore.py
+0
-3
No files found.
Lib/asyncore.py
View file @
828eec0f
...
...
@@ -181,9 +181,6 @@ def poll2(timeout=0.0, map=None):
if
obj
.
writable
()
and
not
obj
.
accepting
:
flags
|=
select
.
POLLOUT
if
flags
:
# Only check for exceptions if object was either readable
# or writable.
flags
|=
select
.
POLLERR
|
select
.
POLLHUP
|
select
.
POLLNVAL
pollster
.
register
(
fd
,
flags
)
try
:
r
=
pollster
.
poll
(
timeout
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment