aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/fork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 1c1cf8dc396b..d0d49879ab7c 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1135,13 +1135,13 @@ static task_t *copy_process(unsigned long clone_flags,
1135 __get_cpu_var(process_counts)++; 1135 __get_cpu_var(process_counts)++;
1136 } 1136 }
1137 1137
1138 proc_fork_connector(p);
1139 if (!current->signal->tty && p->signal->tty) 1138 if (!current->signal->tty && p->signal->tty)
1140 p->signal->tty = NULL; 1139 p->signal->tty = NULL;
1141 1140
1142 nr_threads++; 1141 nr_threads++;
1143 total_forks++; 1142 total_forks++;
1144 write_unlock_irq(&tasklist_lock); 1143 write_unlock_irq(&tasklist_lock);
1144 proc_fork_connector(p);
1145 retval = 0; 1145 retval = 0;
1146 1146
1147fork_out: 1147fork_out: