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:
-rw-r--r--mono/mini/mini-posix.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/mono/mini/mini-posix.c b/mono/mini/mini-posix.c
index 91ac6ae67dd..f524188f99b 100644
--- a/mono/mini/mini-posix.c
+++ b/mono/mini/mini-posix.c
@@ -222,18 +222,11 @@ MONO_SIG_HANDLER_FUNC (static, sigterm_signal_handler)
gchar *output = NULL;
MonoStackHash hashes;
mono_sigctx_to_monoctx (ctx, &mctx);
+ // Will return when the dumping is done, so this thread can continue
+ // running. Returns FALSE on unrecoverable error.
if (!mono_threads_summarize_execute (&mctx, &output, &hashes, FALSE, NULL, 0))
g_assert_not_reached ();
- if (mono_merp_enabled ()) {
- pid_t crashed_pid = getpid ();
- mono_merp_invoke (crashed_pid, "SIGTERM", output, &hashes);
- } else {
- // Controlling thread gets the dump
- if (output)
- MOSTLY_ASYNC_SAFE_PRINTF("Unhandled exception dump: \n######\n%s\n######\n", output);
- }
-
mono_chain_signal (MONO_SIG_HANDLER_PARAMS);
}
#endif