1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-06-21 10:28:05 +02:00

51602: Handle SIGIOT as an alias to SIGABRT if they are the same signal number

This commit is contained in:
Mikael Magnusson 2023-03-26 10:26:25 +02:00
parent 121810dba6
commit 6d40d9b63b
3 changed files with 15 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2023-03-28 Mikael Magnusson <mikachu@gmail.com>
* 51602: Src/jobs.c, Src/signames2.awk: Handle SIGIOT as an
alias to SIGABRT if they are the same signal number
2023-03-27 Oliver Kiddle <opk@zsh.org>
* Shohei YOSHIDA: 51589: Completion/Unix/Command/_nm:

View file

@ -2646,6 +2646,11 @@ static const struct {
{ "IO", SIGIO },
#endif
#endif
#if defined(SIGABRT) && defined(SIGIOT)
#if SIGABRT == SIGIOT
{ "IOT", SIGIOT },
#endif
#endif
#if !defined(SIGERR)
/*
* If SIGERR is not defined by the operating system, use it

View file

@ -14,6 +14,7 @@
signum = tmp[2]
if (signam == "CHLD" && sig[signum] == "CLD") sig[signum] = ""
if (signam == "POLL" && sig[signum] == "IO") sig[signum] = ""
if (signam == "ABRT" && sig[signum] == "IOT") sig[signum] = ""
if (sig[signum] == "") {
sig[signum] = signam
if (0 + max < 0 + signum && signum < 60)