mirror of
git://git.suckless.org/sbase
synced 2026-01-26 05:37:54 +00:00
kill: handle TRAP signal
TRAP is a useful signal which when sent to a process currently attached to a debugger causes the debugger to immediately break. This is very helpful for programs running in some sort of run loop where it may be difficult to set up a break point in an appropriate location without modifying the source to include a predicate condition.
This commit is contained in:
parent
cafdc7c656
commit
279cec8889
3
kill.c
3
kill.c
@ -18,7 +18,8 @@ struct {
|
||||
#define SIG(n) { #n, SIG##n }
|
||||
SIG(ABRT), SIG(ALRM), SIG(BUS), SIG(CHLD), SIG(CONT), SIG(FPE), SIG(HUP),
|
||||
SIG(ILL), SIG(INT), SIG(KILL), SIG(PIPE), SIG(QUIT), SIG(SEGV), SIG(STOP),
|
||||
SIG(TERM), SIG(TSTP), SIG(TTIN), SIG(TTOU), SIG(USR1), SIG(USR2), SIG(URG),
|
||||
SIG(TERM), SIG(TRAP), SIG(TSTP), SIG(TTIN), SIG(TTOU), SIG(USR1), SIG(USR2),
|
||||
SIG(URG),
|
||||
#undef SIG
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user