current->state to set_current_state - kernel/signal.c
PATCH 1/1 current->state to set_current_state - kernel/signal.c
Hello, here is a small fix to remove some obsolete usage of assigning directly to current->state in kernel/signal.c.
Tim Cambrant
kernel/signal.c renamed from kernel/signal.c.orig +2 -2
@@ -2107,7 +2107,7 @@ sys_rt_sigtimedwait(const sigset_t __userecalc_sigpending ();spin_unlock_irq (¤t->sighand->siglock); - current->state =TASK_INTERRUPTIBLE ; +set_current_state (TASK_INTERRUPTIBLE ); timeout =schedule_timeout (timeout);spin_lock_irq (¤t->sighand->siglock);
@@ -2529,7 +2529,7 @@ sys_signal(int sig, __sighandler_t handlasmlinkage long sys_pause (void ) { - current->state =TASK_INTERRUPTIBLE ; +set_current_state (TASK_INTERRUPTIBLE );schedule ();return -ERESTARTNOHAND ; }