* [PATCH] [TRIVIAL] current->state to set_current_state - kernel/signal.c
@ 2004-03-15 1:40 Tim Cambrant
0 siblings, 0 replies; only message in thread
From: Tim Cambrant @ 2004-03-15 1:40 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Linux Kernel Mailing List
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(¤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 handl
asmlinkage long
sys_pause(void)
{
- current->state = TASK_INTERRUPTIBLE;
+ set_current_state(TASK_INTERRUPTIBLE);
schedule();
return -ERESTARTNOHAND;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-03-15 1:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-15 1:40 [PATCH] [TRIVIAL] current->state to set_current_state - kernel/signal.c Tim Cambrant
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).