diff options
-rw-r--r-- | 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 0eb5c420e8e..179529dc381 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; } |