summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-04-01 21:57:09 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-04-01 21:57:09 +0200
commitec998d2d291131166cde7fdff60a8f9aef82b131 (patch)
treefe6234d3f124af152e346432a2121f0c8eb2d914 /Python/errors.c
parent4cf251bd3ccee6aa80c6bcd7a7c36e3a6f26b23c (diff)
downloadcpython-ec998d2d291131166cde7fdff60a8f9aef82b131.tar.gz
Issue #23834: Add sock_call() helper function
The BEGIN_SELECT_LOOP and END_SELECT_LOOP macros of socketmodule.c don't handle EINTR. Functions using these macros use an inner loop to handle EINTR, but they don't recompute the timeout. This changes replaces the two macros with a new sock_call() function which takes a function as a parameter. sock_call() recomputes the timeout, handle false positive and handle EINTR.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions