提交 7dfae720 编写于 作者: A Al Viro

arm: if there's no handler we need to restore sigmask, syscall or no syscall

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 84849b3e
......@@ -715,15 +715,13 @@ static void do_signal(struct pt_regs *regs, int syscall)
#endif
}
}
/* 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, &current->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(&current->saved_sigmask);
}
asmlinkage void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册