diff options
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 4e3f919edc48..fa235779b6a3 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -384,9 +384,7 @@ void daemonize(const char *name, ...) | |||
384 | exit_mm(current); | 384 | exit_mm(current); |
385 | 385 | ||
386 | set_special_pids(1, 1); | 386 | set_special_pids(1, 1); |
387 | mutex_lock(&tty_mutex); | 387 | proc_clear_tty(current); |
388 | current->signal->tty = NULL; | ||
389 | mutex_unlock(&tty_mutex); | ||
390 | 388 | ||
391 | /* Block and flush all signals */ | 389 | /* Block and flush all signals */ |
392 | sigfillset(&blocked); | 390 | sigfillset(&blocked); |