mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
unicore32: if there's no handler we need to restore sigmask, syscall or no syscall
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
a53bb24e76
commit
415d04d08f
1 changed files with 5 additions and 8 deletions
|
@ -447,15 +447,12 @@ static void do_signal(struct pt_regs *regs, int syscall)
|
||||||
regs->UCreg_00 == -ERESTARTNOINTR) {
|
regs->UCreg_00 == -ERESTARTNOINTR) {
|
||||||
setup_syscall_restart(regs);
|
setup_syscall_restart(regs);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If there's no signal to deliver, we just put the saved
|
|
||||||
* sigmask back.
|
|
||||||
*/
|
|
||||||
if (test_thread_flag(TIF_RESTORE_SIGMASK)) {
|
|
||||||
clear_thread_flag(TIF_RESTORE_SIGMASK);
|
|
||||||
sigprocmask(SIG_SETMASK, ¤t->saved_sigmask, NULL);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
/* If there's no signal to deliver, we just put the saved
|
||||||
|
* sigmask back.
|
||||||
|
*/
|
||||||
|
if (test_and_clear_thread_flag(TIF_RESTORE_SIGMASK))
|
||||||
|
set_current_blocked(¤t->saved_sigmask);
|
||||||
}
|
}
|
||||||
|
|
||||||
asmlinkage void do_notify_resume(struct pt_regs *regs,
|
asmlinkage void do_notify_resume(struct pt_regs *regs,
|
||||||
|
|
Loading…
Add table
Reference in a new issue