Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1065d130dddc3241706c50a01ced7b03bcb657be
Commit:     1065d130dddc3241706c50a01ced7b03bcb657be
Parent:     fca3b747795ae24f9667b6c9a69975f9eb98a2c0
Author:     Oleg Nesterov <[EMAIL PROTECTED]>
AuthorDate: Tue May 8 00:24:01 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue May 8 11:14:58 2007 -0700

    freezer: task->exit_state should be treated as bolean
    
    Except for BUG_ON() checks, we should not use EXIT_XXXX defines outside of
    exit/wait paths.
    
    Signed-off-by: Oleg Nesterov <[EMAIL PROTECTED]>
    Cc: "Rafael J. Wysocki" <[EMAIL PROTECTED]>
    Cc: Pavel Machek <[EMAIL PROTECTED]>
    Cc: Ingo Molnar <[EMAIL PROTECTED]>
    Cc: Nick Piggin <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 kernel/power/process.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/kernel/power/process.c b/kernel/power/process.c
index 0eb5c42..179529d 100644
--- a/kernel/power/process.c
+++ b/kernel/power/process.c
@@ -25,10 +25,9 @@
 
 static inline int freezeable(struct task_struct * p)
 {
-       if ((p == current) || 
+       if ((p == current) ||
            (p->flags & PF_NOFREEZE) ||
-           (p->exit_state == EXIT_ZOMBIE) ||
-           (p->exit_state == EXIT_DEAD))
+           (p->exit_state != 0))
                return 0;
        return 1;
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to