aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 72e3252c6763..b18d64554feb 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -979,6 +979,10 @@ static task_t *copy_process(unsigned long clone_flags,
979 } 979 }
980#endif 980#endif
981 981
982#ifdef CONFIG_DEBUG_MUTEXES
983 p->blocked_on = NULL; /* not blocked yet */
984#endif
985
982 p->tgid = p->pid; 986 p->tgid = p->pid;
983 if (clone_flags & CLONE_THREAD) 987 if (clone_flags & CLONE_THREAD)
984 p->tgid = current->tgid; 988 p->tgid = current->tgid;