Tag: Shell
Hup (1) suspended, usually caused by terminal disconnection or user exit
INT (2) interrupt, usually caused by Ctrl + C Combination
Quit (3) exits, usually caused by Ctrl +/Combination
Abrt (6) abort, usually caused by some serious errors
Alrm (14) Alarm, usually used to handle timeout
Term (15) Termination, usually sent when the system is shut down
Tstp (20) stops the process, but the signal can be processed and ignored. When you type the susp character (usually Ctrl + Z), this signal is sent.
Kill-l List System Signals
========================================================== ======================================
========================================================== ======================================
Typically, 1 2 3 15 20 signals are ignored.
Trap + command + signal
Trap "" 1 2 3 15 20 or trap "" Hup int quit term tstp
Trap "" 2 shield Signals
Trap ":" 2 recovery Signal
Trap "" 'seq 64' shields 64 Signals
Trap "" 'echo {1 .. 64 }'
Shell signal capturing