about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2024-02-28 00:21:11 +0100
committerOliver Kiddle <opk@zsh.org>2024-02-28 00:21:11 +0100
commit5331ff11c64d9d292f4fe817723af6e0a067fa1f (patch)
tree367ea996dca3e15adc65bc5c4077726f56b08482 /Src/exec.c
parentb68002d927b1577bbed453d7bbbe39b55acf7bd0 (diff)
downloadzsh-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.c2
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);