Messages in this thread Patch in this message | | | Subject | [PATCH]:Replacing current->state with set_current_state in kernel/signal.c | From | Shani Moideen <> | Date | Wed, 25 Apr 2007 12:08:58 +0530 |
| |
Hi,
Replacing current->state with set_current_state in kernel/signal.c
thanks.
Signed-off-by: Shani Moideen <shani.moideen@wipro.com> ----
diff --git a/kernel/signal.c b/kernel/signal.c index 3670225..44e2cf3 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -2596,7 +2596,7 @@ sys_signal(int sig, __sighandler_t handler) asmlinkage long sys_pause(void) { - current->state = TASK_INTERRUPTIBLE; + set_current_state(TASK_INTERRUPTIBLE); schedule(); return -ERESTARTNOHAND; } @@ -2622,7 +2622,7 @@ asmlinkage long sys_rt_sigsuspend(sigset_t __user *unewset, size_t sigsetsize) recalc_sigpending(); spin_unlock_irq(¤t->sighand->siglock);
- current->state = TASK_INTERRUPTIBLE; + set_current_state(TASK_INTERRUPTIBLE); schedule(); set_thread_flag(TIF_RESTORE_SIGMASK); return -ERESTARTNOHAND; -- Shani - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |