PyDocs

Nav

Networking and Interprocess Communication

set_wakeup_fd

signal

function
  • set_wakeup_fd(fd, *, warn_on_full_buffer=True)
Sets the fd to be written to (with the signal number) when a signal comes in.

A library can use this to wakeup select or poll.
The previous fd or -1 is returned.

The fd must be non-blocking.
Changed in 3.5, 3.7
  • 3.5: On Windows, the function now also supports socket handles.
  • 3.7: Added warn_on_full_buffer parameter.
0 Examples
No examples for signal/set_wakeup_fd.
See Also
No see-alsos for signal/set_wakeup_fd
0 Notes
No notes for set_wakeup_fd