This is automatic generated document for things in Swow\Signal class
Class Signal
Constants
This constant holds SIGABRT value, it’s platform-dependent.
At macOS platform, this constant means “abort()” At Windows platform, this constant may have a value 22 means “abnormal termination triggered by abort call”
This constant holds SIGALRM value, it’s platform-dependent.
At macOS platform, this constant means “alarm clock” At Windows platform, this constant may not exist
This constant holds SIGBREAK value, it’s platform-dependent.
At Windows platform, this constant means “Ctrl-Break sequence” At Linux and macOS platforms, this constant may not exist
This constant holds SIGBUS value, it’s platform-dependent.
At Linux mips64 platform, this constant may have a value 10 At macOS platform, this constant may have a value 10 means “bus error” At Windows platform, this constant may not exist
This constant holds SIGCHLD value, it’s platform-dependent.
At Linux mips64 platform, this constant may have a value 18 At macOS platform, this constant may have a value 20 means “to parent on child stop or exit” At Windows platform, this constant may not exist
This constant holds SIGCONT value, it’s platform-dependent.
At Linux mips64 platform, this constant may have a value 25 At macOS platform, this constant may have a value 19 means “continue a stopped process” At Windows platform, this constant may not exist
This constant holds SIGEMT value, it’s platform-dependent.
At macOS platform, this constant means “EMT instruction” At Windows, Linux x86_64, Linux arm64 and Linux riscv64 platforms, this constant may not exist
This constant holds SIGFPE value, it’s platform-dependent.
At macOS and Windows platforms, this constant means “floating point exception”
This constant holds SIGHUP value, it’s platform-dependent.
At macOS platform, this constant means “hangup” At Windows platform, this constant may not exist
This constant holds SIGILL value, it’s platform-dependent.
At macOS platform, this constant means “illegal instruction (not reset when caught)” At Windows platform, this constant means “illegal instruction - invalid function image”
This constant holds SIGINFO value, it’s platform-dependent.
At macOS platform, this constant means “information request” At Linux and Windows platforms, this constant may not exist
This constant holds SIGINT value, it’s platform-dependent.
At macOS and Windows platforms, this constant means “interrupt”
This constant holds SIGIO value, it’s platform-dependent.
At Linux mips64 platform, this constant may have a value 22 At macOS platform, this constant may have a value 23 means “input/output possible signal” At Windows platform, this constant may not exist
This constant holds SIGIOT value, it’s platform-dependent.
At macOS and Windows platforms, this constant may not exist
This constant holds SIGKILL value, it’s platform-dependent.
At macOS platform, this constant means “kill (cannot be caught or ignored)” At Windows platform, this constant may not exist
This constant holds SIGLOST value, it’s platform-dependent.
At macOS and Windows platforms, this constant may not exist
This constant holds SIGPIPE value, it’s platform-dependent.
At macOS platform, this constant means “write on a pipe with no one to read it” At Windows platform, this constant may not exist
This constant holds SIGPOLL value, it’s platform-dependent.
At macOS platform, this constant means “pollable event ([XSR] generated, not supported)” At Linux and Windows platforms, this constant may not exist
This constant holds SIGPROF value, it’s platform-dependent.
At Linux mips64 platform, this constant may have a value 29 At macOS platform, this constant means “profiling time alarm” At Windows platform, this constant may not exist
This constant holds SIGPWR value, it’s platform-dependent.
At Linux mips64 platform, this constant may have a value 19 At macOS and Windows platforms, this constant may not exist
This constant holds SIGQUIT value, it’s platform-dependent.
At macOS platform, this constant means “quit” At Windows platform, this constant may not exist
This constant holds SIGSEGV value, it’s platform-dependent.
At macOS platform, this constant means “segmentation violation” At Windows platform, this constant means “segment violation”
This constant holds SIGSTKFLT value, it’s platform-dependent.
At macOS and Windows platforms, this constant may not exist
This constant holds SIGSTOP value, it’s platform-dependent.
At Linux mips64 platform, this constant may have a value 23 At macOS platform, this constant may have a value 17 means “sendable stop signal not from tty” At Windows platform, this constant may not exist
This constant holds SIGSYS value, it’s platform-dependent.
At Linux mips64 platform, this constant may have a value 12 At macOS platform, this constant may have a value 12 means “bad argument to system call” At Windows platform, this constant may not exist
This constant holds SIGTERM value, it’s platform-dependent.
At macOS platform, this constant means “software termination signal from kill” At Windows platform, this constant means “Software termination signal from kill”
This constant holds SIGTRAP value, it’s platform-dependent.
At macOS platform, this constant means “trace trap (not reset when caught)” At Windows platform, this constant may not exist
This constant holds SIGTSTP value, it’s platform-dependent.
At Linux mips64 platform, this constant may have a value 24 At macOS platform, this constant may have a value 18 means “stop signal from tty” At Windows platform, this constant may not exist
This constant holds SIGTTIN value, it’s platform-dependent.
At Linux mips64 platform, this constant may have a value 26 At macOS platform, this constant means “to readers pgrp upon background tty read” At Windows platform, this constant may not exist
This constant holds SIGTTOU value, it’s platform-dependent.
At Linux mips64 platform, this constant may have a value 27 At macOS platform, this constant means “like TTIN for output if (tp->t_local<OSTOP)” At Windows platform, this constant may not exist
This constant holds SIGURG value, it’s platform-dependent.
At Linux mips64 platform, this constant may have a value 21 At macOS platform, this constant may have a value 16 means “urgent condition on IO channel” At Windows platform, this constant may not exist
This constant holds SIGUSR1 value, it’s platform-dependent.
At Linux mips64 platform, this constant may have a value 16 At macOS platform, this constant may have a value 30 means “user defined signal 1” At Windows platform, this constant may not exist
This constant holds SIGUSR2 value, it’s platform-dependent.
At Linux mips64 platform, this constant may have a value 17 At macOS platform, this constant may have a value 31 means “user defined signal 2” At Windows platform, this constant may not exist
This constant holds SIGVTALRM value, it’s platform-dependent.
At Linux mips64 platform, this constant may have a value 28 At macOS platform, this constant means “virtual time alarm” At Windows platform, this constant may not exist
This constant holds SIGWINCH value, it’s platform-dependent.
At Linux mips64 platform, this constant may have a value 20 At macOS platform, this constant means “window size changes” At Windows platform, this constant may not exist
This constant holds SIGXCPU value, it’s platform-dependent.
At Linux mips64 platform, this constant may have a value 30 At macOS platform, this constant means “exceeded CPU time limit” At Windows platform, this constant may not exist
This constant holds SIGXFSZ value, it’s platform-dependent.
At Linux mips64 platform, this constant may have a value 31 At macOS platform, this constant means “exceeded file size limit” At Windows platform, this constant may not exist
Methods
Static method kill
Send a signal to a process.
Throws SignalException when the signal cannot be sent
Static method wait
Wait for the signal.
One signal wakes all coroutines that wait for it. The handler exists only during the call. Without a waiter the signal uses the default action.
context switching may happen here
Throws SignalException on timeout (-110) or failure