Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81c05cc commit d0d63dcCopy full SHA for d0d63dc
1 file changed
Doc/library/signal.rst
@@ -306,8 +306,10 @@ The :mod:`signal` module defines the following functions:
306
a library to wakeup a poll or select call, allowing the signal to be fully
307
processed.
308
309
- The old wakeup fd is returned. *fd* must be non-blocking. It is up to the
310
- library to remove any bytes before calling poll or select again.
+ The old wakeup fd is returned (or -1 if file descriptor wakeup was not
+ enabled). If *fd* is -1, file descriptor wakeup is disabled.
311
+ If not -1, *fd* must be non-blocking. It is up to the library to remove
312
+ any bytes from *fd* before calling poll or select again.
313
314
Use for example ``struct.unpack('%uB' % len(data), data)`` to decode the
315
signal numbers list.
0 commit comments