aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/exit.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 6480d1c85d7a..11f9e39a7368 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -784,6 +784,8 @@ void do_exit(long code)
784 exit_shm(tsk); 784 exit_shm(tsk);
785 exit_files(tsk); 785 exit_files(tsk);
786 exit_fs(tsk); 786 exit_fs(tsk);
787 if (group_dead)
788 disassociate_ctty(1);
787 exit_task_namespaces(tsk); 789 exit_task_namespaces(tsk);
788 exit_task_work(tsk); 790 exit_task_work(tsk);
789 check_stack_usage(); 791 check_stack_usage();
@@ -799,13 +801,9 @@ void do_exit(long code)
799 801
800 cgroup_exit(tsk); 802 cgroup_exit(tsk);
801 803
802 if (group_dead)
803 disassociate_ctty(1);
804
805 module_put(task_thread_info(tsk)->exec_domain->module); 804 module_put(task_thread_info(tsk)->exec_domain->module);
806 805
807 proc_exit_connector(tsk); 806 proc_exit_connector(tsk);
808
809 /* 807 /*
810 * FIXME: do that only when needed, using sched_exit tracepoint 808 * FIXME: do that only when needed, using sched_exit tracepoint
811 */ 809 */