]> err.no Git - linux-2.6/blobdiff - kernel/exit.c
[PATCH] fork: fix race in setting child's pgrp and tty
[linux-2.6] / kernel / exit.c
index ee515683b92db35decaaeea608d9be919bb73f33..a80824f6108b70c981d9f47e817c488c2b8db5a5 100644 (file)
@@ -72,7 +72,6 @@ repeat:
                __ptrace_unlink(p);
        BUG_ON(!list_empty(&p->ptrace_list) || !list_empty(&p->ptrace_children));
        __exit_signal(p);
-       __exit_sighand(p);
        /*
         * Note that the fastpath in sys_times depends on __exit_signal having
         * updated the counters before a task is removed from the tasklist of
@@ -926,7 +925,6 @@ do_group_exit(int exit_code)
                        /* Another thread got here before we took the lock.  */
                        exit_code = sig->group_exit_code;
                else {
-                       sig->flags = SIGNAL_GROUP_EXIT;
                        sig->group_exit_code = exit_code;
                        zap_other_threads(current);
                }