summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-07-29 21:31:34 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-07-29 21:31:34 (GMT)
commit115171086a5ded14a2bc2519e7f774a755e7ab04 (patch)
tree18b06fd83c4738802f71d70e6368312a22826202 /Doc/c-api
parentc6aceeed29f5bcb238cc3ab0a1010f34648666cb (diff)
downloadcpython-115171086a5ded14a2bc2519e7f774a755e7ab04.zip
cpython-115171086a5ded14a2bc2519e7f774a755e7ab04.tar.gz
cpython-115171086a5ded14a2bc2519e7f774a755e7ab04.tar.bz2
Issue #22018: On Windows, signal.set_wakeup_fd() now also supports sockets.
A side effect is that Python depends to the WinSock library.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/exceptions.rst11
1 files changed, 8 insertions, 3 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index 33b4439..b0b1e43 100644
--- a/Doc/c-api/exceptions.rst
+++ b/Doc/c-api/exceptions.rst
@@ -443,13 +443,18 @@ in various ways. There is a separate error indicator for each thread.
.. c:function:: int PySignal_SetWakeupFd(int fd)
- This utility function specifies a file descriptor to which a ``'\0'`` byte will
- be written whenever a signal is received. It returns the previous such file
- descriptor. The value ``-1`` disables the feature; this is the initial state.
+ This utility function specifies a file descriptor to which the signal number
+ is written as a single byte whenever a signal is received. *fd* must be
+ non-blocking. It returns the previous such file descriptor.
+
+ The value ``-1`` disables the feature; this is the initial state.
This is equivalent to :func:`signal.set_wakeup_fd` in Python, but without any
error checking. *fd* should be a valid file descriptor. The function should
only be called from the main thread.
+ .. versionchanged:: 3.5
+ On Windows, the function now also supports socket handles.
+
.. c:function:: PyObject* PyErr_NewException(char *name, PyObject *base, PyObject *dict)