aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/signal.c
diff options
context:
space:
mode:
authorPavel Machek <pavel@suse.cz>2006-03-31 02:30:06 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-31 12:18:50 -0800
commit85b6bce3658a823aa169586fe71ffba0f12ccc71 (patch)
treead2ca0b501d2ff767889d15dfda22abec75f38c4 /kernel/signal.c
parent1a75a3f0680d9c4bc4761512658b6fd664032e18 (diff)
downloadkernel_samsung_smdk4412-85b6bce3658a823aa169586fe71ffba0f12ccc71.zip
kernel_samsung_smdk4412-85b6bce3658a823aa169586fe71ffba0f12ccc71.tar.gz
kernel_samsung_smdk4412-85b6bce3658a823aa169586fe71ffba0f12ccc71.tar.bz2
[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>
Diffstat (limited to 'kernel/signal.c')
-rw-r--r--kernel/signal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index 4922928..92025b1 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -1560,6 +1560,7 @@ static void ptrace_stop(int exit_code, int nostop_code, siginfo_t *info)
/* Let the debugger run. */
set_current_state(TASK_TRACED);
spin_unlock_irq(&current->sighand->siglock);
+ try_to_freeze();
read_lock(&tasklist_lock);
if (likely(current->ptrace & PT_PTRACED) &&
likely(current->parent != current->real_parent ||