信号常量


下面的信号常量由 os.constants.signals 导出:

常量 描述
SIGHUP 发送来表明当一个控制终端关闭或者是父进程退出。
SIGINT发送来表明当一个用户期望中断一个进程时。((Ctrl+C)).
SIGQUIT 发送来表明当一个用户希望终止一个进程并且执行核心转储。
SIGILL 发送给一个进程来通知它已经试图执行一个非法的、畸形的、未知的或特权的指令.
SIGTRAP 发送给一个进程当异常已经发生。
SIGABRT 发送给一个进程来请求终止。
SIGIOT SIGABRT 的同义词
SIGBUS 发送给一个进程来通知它已经造成了总线错误。
SIGFPE 发送给一个进程来通知它已经执行了一个非法的算术操作。
SIGKILL 发送给一个进程来立即终止它。
SIGUSR1 SIGUSR2 发送给一个进程来确定它的用户定义情况。
SIGSEGV 发送给一个进程来通知段错误。
SIGPIPE 发送给一个进程当它试图写入一个非连接的管道时。
SIGALRM 发送给一个进程当系统时钟消逝时。
SIGTERM 发送给一个进程来请求终止。
SIGCHLD 发送给一个进程当一个子进程终止时。
SIGSTKFLT 发送给一个进程来表明一个协处理器的栈错误。
SIGCONT 发送来通知操作系统继续一个暂停的进程。
SIGSTOP 发送来通知操作系统暂停一个进程。
SIGTSTP 发送给一个进程来请求它停止。
SIGBREAK 发送来表明当一个用户希望终止一个进程。
SIGTTIN 发送给一个进程当它在后台读取 TTY 时。
SIGTTOU 发送给一个进程当它在后台写入 TTY 时。
SIGURG 发送给一个进程当 socket 有紧急的数据需要读取时。
SIGXCPU 发送给一个进程当它超过他在 CPU 使用上的限制时。
SIGXFSZ 发送给一个进程当它使文件成长地比最大允许的值还大时。
SIGVTALRM 发送给一个进程当一个虚拟时钟消逝时。
SIGPROF 发送给一个进程当一个系统时钟消逝时。
SIGWINCH 发送给一个进程当控制终端改变它的大小。
SIGIO 发送给一个进程当 I/O 可用时。
SIGPOLL SIGIO 的同义词
SIGLOST 发送给一个进程当文件锁丢失时。
SIGPWR 发送给一个进程来通知功率错误。
SIGINFO SIGPWR 的同义词
SIGSYS 发送给一个进程来通知有错误的参数。
SIGUNUSED SIGSYS 的同义词

The following signal constants are exported by os.constants.signals:

Constant Description
SIGHUP Sent to indicate when a controlling terminal is closed or a parent process exits.
SIGINT Sent to indicate when a user wishes to interrupt a process ((Ctrl+C)).
SIGQUIT Sent to indicate when a user wishes to terminate a process and perform a core dump.
SIGILL Sent to a process to notify that it has attempted to perform an illegal, malformed, unknown, or privileged instruction.
SIGTRAP Sent to a process when an exception has occurred.
SIGABRT Sent to a process to request that it abort.
SIGIOT Synonym for SIGABRT
SIGBUS Sent to a process to notify that it has caused a bus error.
SIGFPE Sent to a process to notify that it has performed an illegal arithmetic operation.
SIGKILL Sent to a process to terminate it immediately.
SIGUSR1 SIGUSR2 Sent to a process to identify user-defined conditions.
SIGSEGV Sent to a process to notify of a segmentation fault.
SIGPIPE Sent to a process when it has attempted to write to a disconnected pipe.
SIGALRM Sent to a process when a system timer elapses.
SIGTERM Sent to a process to request termination.
SIGCHLD Sent to a process when a child process terminates.
SIGSTKFLT Sent to a process to indicate a stack fault on a coprocessor.
SIGCONT Sent to instruct the operating system to continue a paused process.
SIGSTOP Sent to instruct the operating system to halt a process.
SIGTSTP Sent to a process to request it to stop.
SIGBREAK Sent to indicate when a user wishes to interrupt a process.
SIGTTIN Sent to a process when it reads from the TTY while in the background.
SIGTTOU Sent to a process when it writes to the TTY while in the background.
SIGURG Sent to a process when a socket has urgent data to read.
SIGXCPU Sent to a process when it has exceeded its limit on CPU usage.
SIGXFSZ Sent to a process when it grows a file larger than the maximum allowed.
SIGVTALRM Sent to a process when a virtual timer has elapsed.
SIGPROF Sent to a process when a system timer has elapsed.
SIGWINCH Sent to a process when the controlling terminal has changed its size.
SIGIO Sent to a process when I/O is available.
SIGPOLL Synonym for SIGIO
SIGLOST Sent to a process when a file lock has been lost.
SIGPWR Sent to a process to notify of a power failure.
SIGINFO Synonym for SIGPWR
SIGSYS Sent to a process to notify of a bad argument.
SIGUNUSED Synonym for SIGSYS