Andrew Geissler | 2ee498a | 2020-05-29 15:52:06 -0500 | [diff] [blame] | 1 | From 9e5b1420b89813ee3c58c2b792077fa8bb71f327 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 21 May 2020 13:53:27 -0700 |
| 4 | Subject: [PATCH] Tackle SIGEMT and SIGSTKFLT is not glibc specific |
| 5 | |
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 7 | --- |
| 8 | lib/portability.c | 5 ++++- |
| 9 | 1 file changed, 4 insertions(+), 1 deletion(-) |
| 10 | |
| 11 | diff --git a/lib/portability.c b/lib/portability.c |
| 12 | index 294141c6..1c7ebc12 100644 |
| 13 | --- a/lib/portability.c |
| 14 | +++ b/lib/portability.c |
| 15 | @@ -430,8 +430,11 @@ static const struct signame signames[] = { |
| 16 | // Non-POSIX signals that cause termination |
| 17 | SIGNIFY(PROF), SIGNIFY(IO), |
| 18 | #ifdef __linux__ |
| 19 | -# if !defined(__GLIBC__) && !defined(__mips__) |
| 20 | +# ifdef SIGSTKFLT |
| 21 | SIGNIFY(STKFLT), |
| 22 | +# endif |
| 23 | +# ifdef SIGEMT |
| 24 | + SIGNIFY(EMT), |
| 25 | # endif |
| 26 | SIGNIFY(POLL), SIGNIFY(PWR), |
| 27 | #elif defined(__APPLE__) |
| 28 | -- |
| 29 | 2.26.2 |
| 30 | |