From a19640a8912e9876f293267986875742867faa54 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 21 May 2020 13:14:40 -0400 Subject: [PATCH 1/2] handle possibility that SIGEMT replaces SIGSTKFLT in strsignal presently all archs define SIGSTKFLT but this is not correct. change strsignal as a prerequisite for fixing that. --- src/string/strsignal.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/string/strsignal.c b/src/string/strsignal.c index 96bfe841..922d3271 100644 --- a/src/string/strsignal.c +++ b/src/string/strsignal.c @@ -31,7 +31,11 @@ static const char map[] = { [SIGPIPE] = 13, [SIGALRM] = 14, [SIGTERM] = 15, +#if defined(SIGSTKFLT) [SIGSTKFLT] = 16, +#elif defined(SIGEMT) + [SIGEMT] = 16, +#endif [SIGCHLD] = 17, [SIGCONT] = 18, [SIGSTOP] = 19, @@ -70,7 +74,11 @@ static const char strings[] = "Broken pipe\0" "Alarm clock\0" "Terminated\0" +#if defined(SIGSTKFLT) "Stack fault\0" +#elif defined(SIGEMT) + "Emulator trap\0" +#endif "Child process status\0" "Continued\0" "Stopped (signal)\0" -- 2.21.0