diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-05-21 23:42:15 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-06-01 12:58:49 -0400 |
commit | a610d6e672d6d3723e8da257ad4a8a288a8f2f89 (patch) | |
tree | 2fac6ce7f72756771f4f87583205cc402589dcad /kernel | |
parent | 5754f412a3f107cbcd93ee125bef296f2a07539b (diff) |
pull clearing RESTORE_SIGMASK into block_sigmask()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/signal.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index 95a9d9d8122b..b9be7e0fe41a 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
@@ -2382,6 +2382,12 @@ void block_sigmask(struct k_sigaction *ka, int signr) | |||
2382 | { | 2382 | { |
2383 | sigset_t blocked; | 2383 | sigset_t blocked; |
2384 | 2384 | ||
2385 | /* A signal was successfully delivered, and the | ||
2386 | saved sigmask was stored on the signal frame, | ||
2387 | and will be restored by sigreturn. So we can | ||
2388 | simply clear the restore sigmask flag. */ | ||
2389 | clear_restore_sigmask(); | ||
2390 | |||
2385 | sigorsets(&blocked, ¤t->blocked, &ka->sa.sa_mask); | 2391 | sigorsets(&blocked, ¤t->blocked, &ka->sa.sa_mask); |
2386 | if (!(ka->sa.sa_flags & SA_NODEFER)) | 2392 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
2387 | sigaddset(&blocked, signr); | 2393 | sigaddset(&blocked, signr); |