Skip to content

Block signals in the ticker thread

vdukhovni requested to merge trac-vdukhovni/ghc:ticker-sigs into ghc-8.10

Thank you for help in maintaining GHC's stable branch!

This backports a signal safety commit from head to 8.10. With itimer always using a second thread, blocking signals in the main thread is ineffective, even in the non-threaded runtime, unless they're also blocked in the timer thread. This commit blocks all signals in the timer thread, restoring the signal semantics of single-threaded programs.

Merge request reports