mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH]:Replacing current->state with set_current_state in kernel/signal.c
@ 2007-04-25  6:38 Shani Moideen
  2007-04-25  7:17 ` Eric Dumazet
  0 siblings, 1 reply; 3+ messages in thread
From: Shani Moideen @ 2007-04-25  6:38 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel, kernel-janitors

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(&current->sighand->siglock);

-       current->state = TASK_INTERRUPTIBLE;
+       set_current_state(TASK_INTERRUPTIBLE);
        schedule();
        set_thread_flag(TIF_RESTORE_SIGMASK);
        return -ERESTARTNOHAND;

-- 
Shani 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-25 15:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-25  6:38 [PATCH]:Replacing current->state with set_current_state in kernel/signal.c Shani Moideen
2007-04-25  7:17 ` Eric Dumazet
2007-04-25 15:45   ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®