Register default signal handler
authorWoongsuk Cho <ws77.cho@samsung.com>
Tue, 12 Mar 2024 01:47:36 +0000 (10:47 +0900)
committer조웅석/MDE Lab(SR)/삼성전자 <ws77.cho@samsung.com>
Tue, 12 Mar 2024 04:31:43 +0000 (13:31 +0900)
commit15f113ebfb2c3a61f1de01b22a2a74d707bdd26b
treeed2e8f8072b9b334d8c6241f58a1d651bbe6b974
parent4019f2e3d6a2e0e22a5a49f437f3f17471f9efd2
Register default signal handler

When the .NET Runtime receives SIGABRT and the previous handler is the default handler,
the .NET Runtime restores the default handler as the current handler and continues.

As a result, if a signal handler has not been registered before the .NET Runtime,
the application will be terminated only after calling SIGAGRT twice.

To avoid this situation, add signal handler before coreclr_initialize()
NativeLauncher/launcher/lib/core_runtime.cc