[merp] Introduce a new 'dump mode' that allows different signal behavior when dumping...
authorAlexis Christoforides <alexis@thenull.net>
Sat, 26 Oct 2019 22:48:40 +0000 (18:48 -0400)
committerAleksey Kliger (λgeek) <alklig@microsoft.com>
Sat, 26 Oct 2019 22:48:40 +0000 (18:48 -0400)
commitcc2f1e7101025d8f97fee65a13113e4686879382
tree0a31474071551c8ebe9e97d64c4fd69dd8c01f78
parent40e0df20d21289ace3be27fb792e5f5ed4c72e5e
[merp] Introduce a new 'dump mode' that allows different signal behavior when dumping (mono/mono#17537)

* dump_native_stacktrace should always register the sigterm handler.

Cherry picked from the https://github.com/mono/mono/pull/17310

* [merp] Introduce a new 'dump mode' that allows different signal behavior when dumping

The primary reason for this is gaining the ability to interpret SIGTERM properly as a crashing signal when outside of 'dump mode', and as a utility signal during the 'thread summarizer' dumping process.

Commit migrated from https://github.com/mono/mono/commit/db568c6fe0cb5eab71ed729ec5b412365eacf280
src/mono/mono/metadata/icall.c
src/mono/mono/mini/exceptions-amd64.c
src/mono/mono/mini/exceptions-ppc.c
src/mono/mono/mini/exceptions-x86.c
src/mono/mono/mini/mini-posix.c
src/mono/mono/mini/mini-runtime.c
src/mono/mono/utils/mono-state.c
src/mono/mono/utils/mono-state.h
src/mono/msvc/libmonoutils-common.targets
src/mono/msvc/libmonoutils-common.targets.filters