mirror of
https://git.code.sf.net/p/zsh/code
synced 2026-04-18 06:53:35 -04:00
52594: support for POSIX real-time signals with kill and trap
Also add new -L option to kill for a more verbose listing of signals
This commit is contained in:
@@ -309,7 +309,7 @@ setfunction(char *name, char *val, int dis)
|
||||
shfunc_set_sticky(shf);
|
||||
|
||||
if (!strncmp(name, "TRAP", 4) &&
|
||||
(sn = getsignum(name + 4)) != -1) {
|
||||
(sn = getsigidx(name + 4)) != -1) {
|
||||
if (settrap(sn, NULL, ZSIG_FUNC)) {
|
||||
freeeprog(shf->funcdef);
|
||||
zfree(shf, sizeof(*shf));
|
||||
|
||||
Reference in New Issue
Block a user