Skip to content

Commit

Permalink
arm: if there's no handler we need to restore sigmask, syscall or no …
Browse files Browse the repository at this point in the history
…syscall

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed May 21, 2012
1 parent 84849b3 commit 7dfae72
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions arch/arm/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7dfae72

Please sign in to comment.