diff options
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index af2eb3cbd499..fafe75d9e6f6 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -312,17 +312,6 @@ kill_orphaned_pgrp(struct task_struct *tsk, struct task_struct *parent) | |||
312 | } | 312 | } |
313 | } | 313 | } |
314 | 314 | ||
315 | void __set_special_pids(struct pid *pid) | ||
316 | { | ||
317 | struct task_struct *curr = current->group_leader; | ||
318 | |||
319 | if (task_session(curr) != pid) | ||
320 | change_pid(curr, PIDTYPE_SID, pid); | ||
321 | |||
322 | if (task_pgrp(curr) != pid) | ||
323 | change_pid(curr, PIDTYPE_PGID, pid); | ||
324 | } | ||
325 | |||
326 | /* | 315 | /* |
327 | * Let kernel threads use this to say that they allow a certain signal. | 316 | * Let kernel threads use this to say that they allow a certain signal. |
328 | * Must not be used if kthread was cloned with CLONE_SIGHAND. | 317 | * Must not be used if kthread was cloned with CLONE_SIGHAND. |
@@ -649,7 +638,6 @@ static void exit_notify(struct task_struct *tsk, int group_dead) | |||
649 | * jobs, send them a SIGHUP and then a SIGCONT. (POSIX 3.2.2.2) | 638 | * jobs, send them a SIGHUP and then a SIGCONT. (POSIX 3.2.2.2) |
650 | */ | 639 | */ |
651 | forget_original_parent(tsk); | 640 | forget_original_parent(tsk); |
652 | exit_task_namespaces(tsk); | ||
653 | 641 | ||
654 | write_lock_irq(&tasklist_lock); | 642 | write_lock_irq(&tasklist_lock); |
655 | if (group_dead) | 643 | if (group_dead) |
@@ -795,6 +783,7 @@ void do_exit(long code) | |||
795 | exit_shm(tsk); | 783 | exit_shm(tsk); |
796 | exit_files(tsk); | 784 | exit_files(tsk); |
797 | exit_fs(tsk); | 785 | exit_fs(tsk); |
786 | exit_task_namespaces(tsk); | ||
798 | exit_task_work(tsk); | 787 | exit_task_work(tsk); |
799 | check_stack_usage(); | 788 | check_stack_usage(); |
800 | exit_thread(); | 789 | exit_thread(); |
@@ -835,7 +824,7 @@ void do_exit(long code) | |||
835 | /* | 824 | /* |
836 | * Make sure we are holding no locks: | 825 | * Make sure we are holding no locks: |
837 | */ | 826 | */ |
838 | debug_check_no_locks_held(tsk); | 827 | debug_check_no_locks_held(); |
839 | /* | 828 | /* |
840 | * We can do this unlocked here. The futex code uses this flag | 829 | * We can do this unlocked here. The futex code uses this flag |
841 | * just to verify whether the pi state cleanup has been done | 830 | * just to verify whether the pi state cleanup has been done |