What are signals? Name the important ones.
BeginnerConceptProcesses, Signals & systemd
Answer
Signals are asynchronous notifications sent to a process.
| Signal | Num | Default use |
|---|---|---|
| SIGHUP | 1 | terminal hangup; many daemons reload config |
| SIGINT | 2 | Ctrl+C |
| SIGKILL | 9 | kill, cannot be caught |
| SIGTERM | 15 | polite termination (default of kill) |
| SIGSTOP | 19 | pause, cannot be caught |
| SIGCONT | 18 | resume |
| SIGUSR1/2 | 10/12 | app-defined (e.g. log reopen) |
More on Processes, Signals & systemd
What is the difference between a program, a process and a thread?BeginnerHow are new processes created in Linux?IntermediateWhat is a zombie process, and how do you get rid of it?IntermediateWhat is an orphan process?BeginnerExplain the process states shown in ps (R, S, D, T, Z).IntermediateWhy can't you kill a process in D state?Advanced