summaryrefslogtreecommitdiff
path: root/kernel/power
diff options
context:
space:
mode:
authorPavel Machek <pavel@suse.cz>2006-03-31 02:30:06 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2006-04-17 13:16:06 -0700
commit6b2467e45179a336f1e5b70d2b2ae1fe89a00133 (patch)
tree89aad214002493c08f0ca25646361e1d8443b40e /kernel/power
parentdea8e11ab727c4c7d75d391354eab355cd74e95a (diff)
downloadkernel-common-6b2467e45179a336f1e5b70d2b2ae1fe89a00133.tar.gz
kernel-common-6b2467e45179a336f1e5b70d2b2ae1fe89a00133.tar.bz2
kernel-common-6b2467e45179a336f1e5b70d2b2ae1fe89a00133.zip
[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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/process.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/power/process.c b/kernel/power/process.c
index 28de118f7a0b..67b2cddfc160 100644
--- a/kernel/power/process.c
+++ b/kernel/power/process.c
@@ -25,8 +25,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;
}