File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -197,8 +197,10 @@ The :mod:`signal` module defines the following functions:
197
197
written to the fd. This can be used by a library to wakeup a poll or select
198
198
call, allowing the signal to be fully processed.
199
199
200
- The old wakeup fd is returned. *fd * must be non-blocking. It is up to the
201
- library to remove any bytes before calling poll or select again.
200
+ The old wakeup fd is returned (or -1 if file descriptor wakeup was not
201
+ enabled). If *fd * is -1, file descriptor wakeup is disabled.
202
+ If not -1, *fd * must be non-blocking. It is up to the library to remove
203
+ any bytes from *fd * before calling poll or select again.
202
204
203
205
When threads are enabled, this function can only be called from the main thread;
204
206
attempting to call it from other threads will cause a :exc: `ValueError `
You can’t perform that action at this time.
0 commit comments