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.
Computer Science · Begrippenlijst
Wat is Signal, handler, disposition?
Ook bekend als: signal · signal disposition · signal handler