Commit 15a6127e authored by Antoine Pitrou's avatar Antoine Pitrou Committed by GitHub

[2.7] Mention how to disable signal fd wakeup (GH-2140) (#2151)

(cherry picked from commit d79c1d4a)
parent bbb33589
...@@ -197,8 +197,10 @@ The :mod:`signal` module defines the following functions: ...@@ -197,8 +197,10 @@ The :mod:`signal` module defines the following functions:
written to the fd. This can be used by a library to wakeup a poll or select written to the fd. This can be used by a library to wakeup a poll or select
call, allowing the signal to be fully processed. call, allowing the signal to be fully processed.
The old wakeup fd is returned. *fd* must be non-blocking. It is up to the The old wakeup fd is returned (or -1 if file descriptor wakeup was not
library to remove any bytes before calling poll or select again. enabled). If *fd* is -1, file descriptor wakeup is disabled.
If not -1, *fd* must be non-blocking. It is up to the library to remove
any bytes from *fd* before calling poll or select again.
When threads are enabled, this function can only be called from the main thread; When threads are enabled, this function can only be called from the main thread;
attempting to call it from other threads will cause a :exc:`ValueError` attempting to call it from other threads will cause a :exc:`ValueError`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment