Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Christoforides <alexis@thenull.net>2020-02-06 03:04:57 +0300
committerGitHub <noreply@github.com>2020-02-06 03:04:57 +0300
commit31c12db374ae442ad8bc0b86458278a797a18d6d (patch)
tree881fb7e88a78c871e7d29d3678a76730afeb738a /configure.ac
parent0e49716ff804bccf74a9c21a0383aa6ba7c49508 (diff)
[runtime] Improve handling crashing signals (#18243)
The default handlers for SIGTRAP, SIGSYS on macOS and Linux crash the process, so we now have Mono report this. This patch also changes how the name of the signal is acquired for passing on to the crash reporting functions, allowing code reuse on crashing signals.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index b9534be6122..f092a1e5834 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2937,6 +2937,23 @@ if test x$host_win32 = xno; then
fi
dnl ********************************
+ dnl *** Checks for sys_signame ***
+ dnl ********************************
+ AC_MSG_CHECKING(for sys_signame)
+ AC_TRY_LINK([
+ #include <signal.h>
+ ], [
+ const char *signame = sys_signame[0];
+ ], [
+ # Yes, we have it...
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_SYSSIGNAME, 1, [Have sys_signame])
+ ], [
+ AC_MSG_RESULT(no)
+ ])
+
+
+ dnl ********************************
dnl *** Checks for semaphore lib ***
dnl ********************************
# 'Real Time' functions on Solaris