aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 2b55b74cd999..8adfe5ddb688 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1510,7 +1510,7 @@ long do_fork(unsigned long clone_flags,
1510 if (!(clone_flags & CLONE_STOPPED)) 1510 if (!(clone_flags & CLONE_STOPPED))
1511 wake_up_new_task(p, clone_flags); 1511 wake_up_new_task(p, clone_flags);
1512 else 1512 else
1513 p->state = TASK_STOPPED; 1513 __set_task_state(p, TASK_STOPPED);
1514 1514
1515 if (unlikely (trace)) { 1515 if (unlikely (trace)) {
1516 current->ptrace_message = nr; 1516 current->ptrace_message = nr;