vserver 1.9.3
[linux-2.6.git] / kernel / power / process.c
index 0d1f63e..bda013d 100644 (file)
@@ -25,7 +25,8 @@ static inline int freezeable(struct task_struct * p)
            (p->flags & PF_NOFREEZE) ||
            (p->state == TASK_ZOMBIE) ||
            (p->state == TASK_DEAD) ||
-           (p->state == TASK_STOPPED))
+           (p->state == TASK_STOPPED) ||
+           (p->state == TASK_TRACED))
                return 0;
        return 1;
 }
@@ -70,6 +71,7 @@ int freeze_processes(void)
                        if (!freezeable(p))
                                continue;
                        if ((p->flags & PF_FROZEN) ||
+                           (p->state == TASK_TRACED) ||
                            (p->state == TASK_STOPPED))
                                continue;