Fix process-targeted signals.

This commit is contained in:
4lDO2
2024-07-17 16:42:17 +02:00
parent 15cdc4e0aa
commit 4354bc94e8
+2 -2
View File
@@ -194,7 +194,7 @@ asmfunction!(__relibc_internal_sigentry: ["
bsf eax, eax
jz 8f
lock btr [rcx + {pctl_off_pending}], eax
jnc 9f
jc 9f
8:
// Read second signal word - both process and thread simultaneously.
// This must be done since POSIX requires low realtime signals to be picked first.
@@ -229,7 +229,7 @@ asmfunction!(__relibc_internal_sigentry: ["
add rdx, fs:[{tcb_sa_off} + {sa_off_pctl}]
// scale factor 16 doesn't exist, so we premultiplied edx by 2
bt qword ptr [rdx], 56
bt qword ptr [rdx], 58
jnc 4f
// Otherwise, the altstack is already active. The sigaltstack being disabled, is equivalent