Skip to content

Block signals in the ticker thread (9.2 backport)

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

This backports a signal safety commit from head to 9.0. 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. in a comment.

Merge request reports