X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Fsignal.c;h=a390499943e48e63e77f14d631f75505485e84cb;hb=c4ac37193eccd941ff53da561d815bdabf591d31;hp=33a52759cc0edfc62a2638a6608becee10d28694;hpb=db3ecdee1cf0538f11832f7ef66945c4dd903918;p=karo-tx-linux.git diff --git a/kernel/signal.c b/kernel/signal.c index 33a52759cc0e..a390499943e4 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -3550,7 +3550,7 @@ SYSCALL_DEFINE2(signal, int, sig, __sighandler_t, handler) SYSCALL_DEFINE0(pause) { while (!signal_pending(current)) { - current->state = TASK_INTERRUPTIBLE; + __set_current_state(TASK_INTERRUPTIBLE); schedule(); } return -ERESTARTNOHAND; @@ -3563,7 +3563,7 @@ int sigsuspend(sigset_t *set) current->saved_sigmask = current->blocked; set_current_blocked(set); - current->state = TASK_INTERRUPTIBLE; + __set_current_state(TASK_INTERRUPTIBLE); schedule(); set_restore_sigmask(); return -ERESTARTNOHAND;