diff options
author | Oliver Kiddle <opk@zsh.org> | 2024-02-28 00:21:11 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2024-02-28 00:21:11 +0100 |
commit | 5331ff11c64d9d292f4fe817723af6e0a067fa1f (patch) | |
tree | 367ea996dca3e15adc65bc5c4077726f56b08482 /Src/exec.c | |
parent | b68002d927b1577bbed453d7bbbe39b55acf7bd0 (diff) | |
download | zsh-5331ff11c64d9d292f4fe817723af6e0a067fa1f.tar.gz zsh-5331ff11c64d9d292f4fe817723af6e0a067fa1f.tar.xz zsh-5331ff11c64d9d292f4fe817723af6e0a067fa1f.zip |
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
Diffstat (limited to 'Src/exec.c')
-rw-r--r-- | Src/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c index 0750738ce..d85adbea5 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -5427,7 +5427,7 @@ execfuncdef(Estate state, Eprog redir_prog) } else { /* is this shell function a signal trap? */ if (!strncmp(s, "TRAP", 4) && - (signum = getsignum(s + 4)) != -1) { + (signum = getsigidx(s + 4)) != -1) { if (settrap(signum, NULL, ZSIG_FUNC)) { freeeprog(shf->funcdef); dircache_set(&shf->filename, NULL); |