signal: If the thread receiving the signal is not current, the signal is not processed.

This commit is contained in:
Tomoki Shirasawa
2018-01-25 22:27:34 +09:00
parent 1fa398cfab
commit f55f01cc11
2 changed files with 59 additions and 28 deletions

View File

@@ -875,8 +875,9 @@ void interrupt_exit(struct x86_user_context *regs)
{
if (interrupt_from_user(regs)) {
cpu_enable_interrupt();
check_signal(0, regs, 0);
check_sig_pending();
check_need_resched();
check_signal(0, regs, 0);
}
else {
check_sig_pending();