diff options
Diffstat (limited to 'kernel/power/process.c')
-rw-r--r-- | kernel/power/process.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/power/process.c b/kernel/power/process.c index cba8a5890eda..1badb9a89ade 100644 --- a/kernel/power/process.c +++ b/kernel/power/process.c | |||
@@ -97,7 +97,9 @@ int freeze_processes(void) | |||
97 | continue; | 97 | continue; |
98 | if (frozen(p)) | 98 | if (frozen(p)) |
99 | continue; | 99 | continue; |
100 | if (p->state == TASK_TRACED && frozen(p->parent)) { | 100 | if (p->state == TASK_TRACED && |
101 | (frozen(p->parent) || | ||
102 | p->parent->state == TASK_STOPPED)) { | ||
101 | cancel_freezing(p); | 103 | cancel_freezing(p); |
102 | continue; | 104 | continue; |
103 | } | 105 | } |