PyDocs

Networking and Interprocess Communication

Networking and Interprocess Communication

signal

This module provides mechanisms to use signal handlers in Python.
Symbols in signal

a

alarm
Arrange for SIGALRM to arrive after the given number of seconds.

c

CTRL_BREAK_EVENT
The signal corresponding to the Ctrl+Break keystroke event.
CTRL_C_EVENT
The signal corresponding to the Ctrl+C keystroke event.

g

getitimer
Returns current value of given itimer.
getsignal
Return the current action for the given signal.

h

Handlers
An enumeration.

i

ITIMER_PROF
Decrements interval timer both when the process executes and when the system is executing on behalf of the process.
ITIMER_REAL
Decrements interval timer in real time, and delivers SIGALRM upon expiration.
ITIMER_VIRTUAL
Decrements interval timer only when the process is executing, and delivers SIGVTALRM upon expiration.
ItimerError
Raised to signal an error from the underlying setitimer() or getitimer() implementation.

n

NSIG
One more than the number of the highest signal number.

p

pause
Wait until a signal arrives.
pidfd_send_signal
Send a signal to a process referred to by a pid file descriptor.
pthread_kill
Send a signal to a thread.
pthread_sigmask
Fetch and/or change the signal mask of the calling thread.

r

raise_signal
Send a signal to the executing process.

s

set_wakeup_fd
Sets the fd to be written to (with the signal number) when a signal comes in.
setitimer
Sets given itimer (one of ITIMER_REAL, ITIMER_VIRTUAL or ITIMER_PROF).
SIG_BLOCK
A possible value for the how parameter to pthread_sigmask() indicating that signals are to be blocked.
SIG_DFL
This is one of two standard signal handling options; it will simply perform the default function for the signal.
SIG_IGN
This is another standard signal handler, which will simply ignore the given signal.
SIG_SETMASK
A possible value for the how parameter to pthread_sigmask() indicating that the signal mask is to be replaced.
SIG_UNBLOCK
A possible value for the how parameter to pthread_sigmask() indicating that signals are to be unblocked.
SIGABRT
Abort signal from abort(3).
SIGALRM
Timer signal from alarm(2).
SIGBREAK
Interrupt from keyboard (CTRL + BREAK).
SIGBUS
Bus error (bad memory access).
SIGCHLD
Child process stopped or terminated.
SIGCLD
Alias to SIGCHLD.
SIGCONT
Continue the process if it is currently stopped
SIGFPE
Floating-point exception.
SIGHUP
Hangup detected on controlling terminal or death of controlling process.
SIGILL
Illegal instruction.
SIGINT
Interrupt from keyboard (CTRL + C).
siginterrupt
Change system call restart behaviour.
SIGKILL
Kill signal.
Sigmasks
An enumeration.
signal
Set the action for the given signal.
Signals
An enumeration.
sigpending
Examine pending signals.
SIGPIPE
Broken pipe: write to pipe with no readers.
SIGPROF
Profiling timer expired.
SIGQUIT
Terminal quit signal.
SIGSEGV
Segmentation fault: invalid memory reference.
SIGSTKFLT
Stack fault on coprocessor.
SIGSTOP
Stop executing (cannot be caught or ignored).
SIGTERM
Termination signal.
sigtimedwait
Like sigwaitinfo(), but with a timeout.
SIGUSR1
User-defined signal 1.
SIGUSR2
User-defined signal 2.
SIGVTALRM
Virtual timer expired.
sigwait
Wait for a signal.
sigwaitinfo
Wait synchronously until one of the signals in *sigset* is delivered.
SIGWINCH
Window resize signal.
SIGXCPU
CPU time limit exceeded.
strsignal
Return the system description of the given signal.

v

valid_signals
Return a set of valid signal numbers on this platform.