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

Commit 0b4d7890 authored by Martin Schwidefsky's avatar Martin Schwidefsky Committed by Martin Schwidefsky
Browse files

[S390] use set_current_state in sigsuspend



Use set_current_state instead of a direct assignment to set the
task state of the current process.

Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 428aecf6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ SYSCALL_DEFINE3(sigsuspend, int, history0, int, history1, old_sigset_t, mask)
	recalc_sigpending();
	spin_unlock_irq(&current->sighand->siglock);

	current->state = TASK_INTERRUPTIBLE;
	set_current_state(TASK_INTERRUPTIBLE);
	schedule();
	set_thread_flag(TIF_RESTORE_SIGMASK);