On this page
  1. signal.set_wakeup_fd
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

signal.set_wakeup_fd

Prev: signal.raise_signal | Up: signal | Next: signal.setitimer
Rel: signal.alarm, signal.default_int_handler, signal.getitimer, signal.getsignal
Ref: docs.python.org — signal.set_wakeup_fd
Tags: #public #python3 #stdlib #signal


Import

import signal
from signal import set_wakeup_fd

Signature & Overview

signal.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.

Usage

import signal

# Writes received signal numbers to a non-blocking pipe/socket fd (used by asyncio)
assert callable(signal.set_wakeup_fd)

Gotchas

REPL Inspect

from signal import set_wakeup_fd
help(set_wakeup_fd)

Linked from

Related notes