Restoring just the signal masks seems to work with dotnet, but it still has the issue of race conditions.
Whichever solution: clearing the signals, restoring sa_mask, it should be done by dotnet. I.e. not installing the signal handlers, and there's an option for that as mentioned on the github ticket, or copying the correct sa_mask, somewhere in https://github.com/dotnet/coreclr/blob/4f6cc4aff1356802f04a7d6bb7a40c1642f7e96e/src/pal/src/exception/signal.cpp
Restoring just the signal masks seems to work with dotnet, but it still has the issue of race conditions.
Whichever solution: clearing the signals, restoring sa_mask, it should be done by dotnet. I.e. not installing the signal handlers, and there's an option for that as mentioned on the github ticket, or copying the correct sa_mask, somewhere in https:/ /github. com/dotnet/ coreclr/ blob/4f6cc4aff1 356802f04a7d6bb 7a40c1642f7e96e /src/pal/ src/exception/ signal. cpp