|
@@ -784,6 +784,8 @@ void do_exit(long code)
|
|
exit_shm(tsk);
|
|
exit_shm(tsk);
|
|
exit_files(tsk);
|
|
exit_files(tsk);
|
|
exit_fs(tsk);
|
|
exit_fs(tsk);
|
|
|
|
+ if (group_dead)
|
|
|
|
+ disassociate_ctty(1);
|
|
exit_task_namespaces(tsk);
|
|
exit_task_namespaces(tsk);
|
|
exit_task_work(tsk);
|
|
exit_task_work(tsk);
|
|
check_stack_usage();
|
|
check_stack_usage();
|
|
@@ -799,13 +801,9 @@ void do_exit(long code)
|
|
|
|
|
|
cgroup_exit(tsk);
|
|
cgroup_exit(tsk);
|
|
|
|
|
|
- if (group_dead)
|
|
|
|
- disassociate_ctty(1);
|
|
|
|
-
|
|
|
|
module_put(task_thread_info(tsk)->exec_domain->module);
|
|
module_put(task_thread_info(tsk)->exec_domain->module);
|
|
|
|
|
|
proc_exit_connector(tsk);
|
|
proc_exit_connector(tsk);
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* FIXME: do that only when needed, using sched_exit tracepoint
|
|
* FIXME: do that only when needed, using sched_exit tracepoint
|
|
*/
|
|
*/
|