[PATCH] [TRIVIAL] current->state to set_current_state - kernel/signal.c

From: Tim Cambrant
Date: Sun Mar 14 2004 - 20:40:08 EST


Hello, here is a small fix to remove some obsolete usage of assigning
directly to current->state in kernel/signal.c.

Tim Cambrant



--- linux-2.6.4/kernel/signal.c.orig 2004-03-15 02:27:22.801481976 +0100
+++ linux-2.6.4/kernel/signal.c 2004-03-15 02:29:56.648093736 +0100
@@ -2107,7 +2107,7 @@ sys_rt_sigtimedwait(const sigset_t __use
recalc_sigpending();
spin_unlock_irq(&current->sighand->siglock);

- current->state = TASK_INTERRUPTIBLE;
+ set_current_state(TASK_INTERRUPTIBLE);
timeout = schedule_timeout(timeout);

spin_lock_irq(&current->sighand->siglock);
@@ -2529,7 +2529,7 @@ sys_signal(int sig, __sighandler_t handl
asmlinkage long
sys_pause(void)
{
- current->state = TASK_INTERRUPTIBLE;
+ set_current_state(TASK_INTERRUPTIBLE);
schedule();
return -ERESTARTNOHAND;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/