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:
Oliver Kiddle
2024-02-28 00:21:11 +01:00
parent b68002d927
commit 5331ff11c6
14 changed files with 249 additions and 63 deletions

View File

@@ -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));