Move the single_thread_check() to the start of userret().
authorclaudio <claudio@openbsd.org>
Fri, 11 Aug 2023 07:54:18 +0000 (07:54 +0000)
committerclaudio <claudio@openbsd.org>
Fri, 11 Aug 2023 07:54:18 +0000 (07:54 +0000)
commit88dbeb6fd6094817c82a7cd285c5a34274957112
treeac863cb18a8ff110428232f4b47f0346da1f90de
parent7d242c13afd19e56cc21befac2ce5cdc1ac4992b
Move the single_thread_check() to the start of userret().

This way threads stopped by SINGLE_SUSPEND will check for pending
signals right after being released instead of returning to userland
first. The same order of check is already used in sleep_signal_check().

OK mpi@
sys/kern/kern_sig.c