[crac] RFR: Block RESTORE_SIGNAL in all threads

Anton Kozlov akozlov at openjdk.org
Wed Jul 6 11:21:18 UTC 2022


On Tue, 5 Jul 2022 10:34:16 GMT, Volker Simonis <simonis at openjdk.org> wrote:

> The 'crac' branch already introduced a signal set for blocked signals which contains `RESTORE_SIGNAL` (i.e. `SIGRTMIN+2`) but the signalset is currently not used. This PR uses that signalset to block `RESTORE_SIGNAL` in all threads as recommended when using [`sigwaitinfo()`](https://man7.org/linux/man-pages/man2/sigwaitinfo.2.html) to wait for `RESTORE_SIGNAL`.

I've lost this code during the 6d5c6da75b6cfce63a45c32cd1089840c4fd65eb, bringing it back looks good. Thanks!

-------------

Marked as reviewed by akozlov (Lead).

PR: https://git.openjdk.org/crac/pull/27


More information about the crac-dev mailing list