Commit 7dfae720 authored by Al Viro's avatar Al Viro

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

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 84849b3e
...@@ -715,15 +715,13 @@ static void do_signal(struct pt_regs *regs, int syscall) ...@@ -715,15 +715,13 @@ static void do_signal(struct pt_regs *regs, int syscall)
#endif #endif
} }
} }
}
/* If there's no signal to deliver, we just put the saved sigmask /* If there's no signal to deliver, we just put the saved sigmask
* back. * back.
*/ */
if (test_thread_flag(TIF_RESTORE_SIGMASK)) { if (test_and_clear_thread_flag(TIF_RESTORE_SIGMASK))
clear_thread_flag(TIF_RESTORE_SIGMASK); set_current_blocked(&current->saved_sigmask);
sigprocmask(SIG_SETMASK, &current->saved_sigmask, NULL);
}
}
} }
asmlinkage void asmlinkage void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment