[PATCH] Fix suspend with traced tasks
strace /bin/bash misbehaves after resume; this fixes it. (akpm: it's scary calling refrigerator() in state TASK_TRACED, but it seems to do the right thing). Signed-off-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
1a75a3f068
commit
85b6bce365
@@ -26,8 +26,7 @@ static inline int freezeable(struct task_struct * p)
|
||||
(p->flags & PF_NOFREEZE) ||
|
||||
(p->exit_state == EXIT_ZOMBIE) ||
|
||||
(p->exit_state == EXIT_DEAD) ||
|
||||
(p->state == TASK_STOPPED) ||
|
||||
(p->state == TASK_TRACED))
|
||||
(p->state == TASK_STOPPED))
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user