signal module¶
|
struct_siginfo: Result from sigwaitinfo or sigtimedwait. |
- class Handlers(value)¶
Bases:
enum.IntEnum
An enumeration.
- SIG_DFL = 0¶
- SIG_IGN = 1¶
- class Sigmasks(value)¶
Bases:
enum.IntEnum
An enumeration.
- SIG_BLOCK = 0¶
- SIG_SETMASK = 2¶
- SIG_UNBLOCK = 1¶
- class Signals(value)¶
Bases:
enum.IntEnum
An enumeration.
- SIGABRT = 6¶
- SIGALRM = 14¶
- SIGBUS = 7¶
- SIGCHLD = 17¶
- SIGCLD = 17¶
- SIGCONT = 18¶
- SIGFPE = 8¶
- SIGHUP = 1¶
- SIGILL = 4¶
- SIGINT = 2¶
- SIGIO = 29¶
- SIGIOT = 6¶
- SIGKILL = 9¶
- SIGPIPE = 13¶
- SIGPOLL = 29¶
- SIGPROF = 27¶
- SIGPWR = 30¶
- SIGQUIT = 3¶
- SIGRTMAX = 64¶
- SIGRTMIN = 34¶
- SIGSEGV = 11¶
- SIGSTOP = 19¶
- SIGSYS = 31¶
- SIGTERM = 15¶
- SIGTRAP = 5¶
- SIGTSTP = 20¶
- SIGTTIN = 21¶
- SIGTTOU = 22¶
- SIGURG = 23¶
- SIGUSR1 = 10¶
- SIGUSR2 = 12¶
- SIGVTALRM = 26¶
- SIGWINCH = 28¶
- SIGXCPU = 24¶
- SIGXFSZ = 25¶
- class struct_siginfo(iterable=(), /)¶
Bases:
tuple
struct_siginfo: Result from sigwaitinfo or sigtimedwait.
This object may be accessed either as a tuple of (si_signo, si_code, si_errno, si_pid, si_uid, si_status, si_band), or via the attributes si_signo, si_code, and so on.
- n_fields = 7¶
- n_sequence_fields = 7¶
- n_unnamed_fields = 0¶
- si_band¶
band event for SIGPOLL
- si_code¶
signal code
- si_errno¶
errno associated with this signal
- si_pid¶
sending process ID
- si_signo¶
signal number
- si_status¶
exit value or signal
- si_uid¶
real user ID of sending process