Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27f20dca authored by David S. Miller's avatar David S. Miller
Browse files

sparc: Avoid calling sigprocmask()



Use set_current_blocked() instead.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent faddf598
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -874,7 +874,7 @@ void do_signal32(sigset_t *oldset, struct pt_regs * regs,
	 */
	if (current_thread_info()->status & TS_RESTORE_SIGMASK) {
		current_thread_info()->status &= ~TS_RESTORE_SIGMASK;
		sigprocmask(SIG_SETMASK, &current->saved_sigmask, NULL);
		set_current_blocked(&current->saved_sigmask);
	}
}

+1 −1
Original line number Diff line number Diff line
@@ -575,7 +575,7 @@ static void do_signal(struct pt_regs *regs, unsigned long orig_i0)
	 */
	if (test_thread_flag(TIF_RESTORE_SIGMASK)) {
		clear_thread_flag(TIF_RESTORE_SIGMASK);
		sigprocmask(SIG_SETMASK, &current->saved_sigmask, NULL);
		set_current_blocked(&current->saved_sigmask);
	}
}

+1 −1
Original line number Diff line number Diff line
@@ -595,7 +595,7 @@ static void do_signal(struct pt_regs *regs, unsigned long orig_i0)
	 */
	if (current_thread_info()->status & TS_RESTORE_SIGMASK) {
		current_thread_info()->status &= ~TS_RESTORE_SIGMASK;
		sigprocmask(SIG_SETMASK, &current->saved_sigmask, NULL);
		set_current_blocked(&current->saved_sigmask);
	}
}