$RodHat_/search

$ man 7 signal · diff

Signal comparisons

The names are short. The difference at 2 a.m. can be expensive. These pairs put the default action, whether a handler can intervene, and the first thing to inspect side by side. Signal numbers below are for Linux on x86 and arm64; use names in scripts.

Which one should stop a process?

SIGTERM vs SIGKILL

Start with SIGTERM. It asks the process to exit and leaves room for a handler to clean up. SIGKILL ends it without running a handler. Use SIGKILL when the process has not responded and waiting longer is worse.

SIGTERM · Linux 15 · Terminate the process/SIGKILL · Linux 9 · Terminate the process

Why did this memory access fail?

SIGSEGV vs SIGBUS

SIGSEGV often points to an address or permission problem. SIGBUS can mean a mapped address could not be backed by its file, or that the hardware rejected the access. The signal alone does not locate the bug; the fault address and mapping do.

SIGSEGV · Linux 11 · Terminate and dump core/SIGBUS · Linux 7 · Terminate and dump core

How do you pause a process?

SIGSTOP vs SIGTSTP

SIGSTOP always stops the process and cannot be caught. SIGTSTP is the terminal-style stop, usually sent by Ctrl-Z; an application may catch it to restore terminal state before stopping.

SIGSTOP · Linux 19 · Stop the process/SIGTSTP · Linux 20 · Stop the process

What is the difference between Ctrl-C and Ctrl-\?

SIGINT vs SIGQUIT

The terminal normally sends SIGINT for Ctrl-C and SIGQUIT for Ctrl-\. Their default actions differ: SIGINT terminates; SIGQUIT terminates and requests a core dump. Programs may install handlers and change what you observe.

SIGINT · Linux 2 · Terminate the process/SIGQUIT · Linux 3 · Terminate and dump core

Need another name? Browse the signal reference.