全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Signal, handler, disposition?

又称: signal · signal disposition · signal handler

Definition 14.10 University Computer Science — Year 2 · 第 14 章 — Files, Pipes and Signals

A signal is a small numbered notification that the kernel delivers to a process, interrupting whatever it was doing: on a key (SIGINT, 2, for Ctrl-C), on an event (SIGCHLD, 17, a child ended; SIGPIPE, 13, a write to a pipe with no reader), or because another process called kill(pid, sig) (SIGTERM, 15, “please end”; SIGKILL, 9, “end now”). The disposition of a signal in a process says what delivery does: the default action (for most signals, end the process; for SIGCHLD, nothing), ignore it, or call a function of the process, a signal handler, installed with sigaction. SIGKILL and SIGSTOP cannot be caught or ignored. The numbers are those of Linux on x86-64.

在原文中阅读 →