Introduced by #116652 - see discussion in #116652 (comment).
-
We should keep the PosixSignalRegistration
s alive to prevent them from getting finalized in case GC collects them during shutdown.
-
We may want to dispose PosixSignalRegistration
s on a separate thread to avoid A-B/B-A deadlock between the thread trying dispose PosixSignalRegistration
and the signal handler thread in case the signal is delivered while the application is shutting down