diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/fork.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index dfeadf466f18..b25802065031 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1116,6 +1116,9 @@ static task_t *copy_process(unsigned long clone_flags, | |||
1116 | __get_cpu_var(process_counts)++; | 1116 | __get_cpu_var(process_counts)++; |
1117 | } | 1117 | } |
1118 | 1118 | ||
1119 | if (!current->signal->tty && p->signal->tty) | ||
1120 | p->signal->tty = NULL; | ||
1121 | |||
1119 | nr_threads++; | 1122 | nr_threads++; |
1120 | total_forks++; | 1123 | total_forks++; |
1121 | write_unlock_irq(&tasklist_lock); | 1124 | write_unlock_irq(&tasklist_lock); |