[merp] Introduce a new 'dump mode' that allows different signal behavior when dumping...
commitdb568c6fe0cb5eab71ed729ec5b412365eacf280
authorAlexis Christoforides <alexis@thenull.net>
Sat, 26 Oct 2019 22:48:40 +0000 (26 18:48 -0400)
committerAleksey Kliger (λgeek) <alklig@microsoft.com>
Sat, 26 Oct 2019 22:48:40 +0000 (26 18:48 -0400)
treeb5242ce9a9cae80eefcda9a7fe177aaf27ec543f
parent0e3caf00df54199be88cfcb53ed847226defebb4
[merp] Introduce a new 'dump mode' that allows different signal behavior when dumping (#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.
mono/metadata/icall.c
mono/mini/exceptions-amd64.c
mono/mini/exceptions-ppc.c
mono/mini/exceptions-x86.c
mono/mini/mini-posix.c
mono/mini/mini-runtime.c
mono/utils/mono-state.c
mono/utils/mono-state.h
msvc/libmonoutils-common.targets
msvc/libmonoutils-common.targets.filters