diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-07-24 19:58:53 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-07-24 19:58:53 (GMT) |
commit | d18ccd19f0a197746e48b0a2fa128f8b06f2168d (patch) | |
tree | cb9caebf79fd2bd593a4474b13417d8d3ab8b9e8 /Doc | |
parent | 316b16de13bef1d6e649bc12456bdae34d685d91 (diff) | |
download | cpython-d18ccd19f0a197746e48b0a2fa128f8b06f2168d.zip cpython-d18ccd19f0a197746e48b0a2fa128f8b06f2168d.tar.gz cpython-d18ccd19f0a197746e48b0a2fa128f8b06f2168d.tar.bz2 |
tets
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/c-api/exceptions.rst | 13 | ||||
-rw-r--r-- | Doc/library/signal.rst | 5 |
2 files changed, 15 insertions, 3 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index 33b4439..46033ca 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -443,13 +443,20 @@ 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. + + On Windows, the function only supports socket handles. + + 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 only supports socket handles. + .. c:function:: PyObject* PyErr_NewException(char *name, PyObject *base, PyObject *dict) diff --git a/Doc/library/signal.rst b/Doc/library/signal.rst index a97ce66..cda228b 100644 --- a/Doc/library/signal.rst +++ b/Doc/library/signal.rst @@ -308,6 +308,8 @@ The :mod:`signal` module defines the following functions: a library to wakeup a poll or select call, allowing the signal to be fully processed. + On Windows, the function only supports socket handles. + The old wakeup fd is returned. *fd* must be non-blocking. It is up to the library to remove any bytes before calling poll or select again. @@ -318,6 +320,9 @@ The :mod:`signal` module defines the following functions: attempting to call it from other threads will cause a :exc:`ValueError` exception to be raised. + .. versionchanged:: 3.5 + On Windows, the function now only supports socket handles. + .. function:: siginterrupt(signalnum, flag) |