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 @@ -306,8 +306,10 @@ The :mod:`signal` module defines the following functions:
306
306
a library to wakeup a poll or select call, allowing the signal to be fully
307
307
processed.
308
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.
309
+ The old wakeup fd is returned (or -1 if file descriptor wakeup was not
310
+ 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.
311
313
312
314
Use for example ``struct.unpack('%uB' % len(data), data) `` to decode the
313
315
signal numbers list.
You can’t perform that action at this time.
0 commit comments