diff options
| author | Paul Mackerras <paulus@samba.org> | 2005-11-25 06:12:01 -0500 |
|---|---|---|
| committer | Paul Mackerras <paulus@samba.org> | 2005-11-25 06:12:01 -0500 |
| commit | 26925c5910ab77fc95b4d8bb6d98780b50ab1e5a (patch) | |
| tree | 7d7506b3aedeea4db8b8659f046850db97503a89 /fs/exec.c | |
| parent | 55bb239e5464ecde046af3e45052ef06efda6444 (diff) | |
| parent | cd0cca7bf5e201dcea5632f78ad9b37cb419a5df (diff) | |
Merge ../linux-2.6
Diffstat (limited to 'fs/exec.c')
| -rw-r--r-- | fs/exec.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -668,7 +668,7 @@ static inline int de_thread(struct task_struct *tsk) | |||
| 668 | if (!thread_group_leader(current)) { | 668 | if (!thread_group_leader(current)) { |
| 669 | struct task_struct *parent; | 669 | struct task_struct *parent; |
| 670 | struct dentry *proc_dentry1, *proc_dentry2; | 670 | struct dentry *proc_dentry1, *proc_dentry2; |
| 671 | unsigned long exit_state, ptrace; | 671 | unsigned long ptrace; |
| 672 | 672 | ||
| 673 | /* | 673 | /* |
| 674 | * Wait for the thread group leader to be a zombie. | 674 | * Wait for the thread group leader to be a zombie. |
| @@ -726,15 +726,15 @@ static inline int de_thread(struct task_struct *tsk) | |||
| 726 | list_del(¤t->tasks); | 726 | list_del(¤t->tasks); |
| 727 | list_add_tail(¤t->tasks, &init_task.tasks); | 727 | list_add_tail(¤t->tasks, &init_task.tasks); |
| 728 | current->exit_signal = SIGCHLD; | 728 | current->exit_signal = SIGCHLD; |
| 729 | exit_state = leader->exit_state; | 729 | |
| 730 | BUG_ON(leader->exit_state != EXIT_ZOMBIE); | ||
| 731 | leader->exit_state = EXIT_DEAD; | ||
| 730 | 732 | ||
| 731 | write_unlock_irq(&tasklist_lock); | 733 | write_unlock_irq(&tasklist_lock); |
| 732 | spin_unlock(&leader->proc_lock); | 734 | spin_unlock(&leader->proc_lock); |
| 733 | spin_unlock(¤t->proc_lock); | 735 | spin_unlock(¤t->proc_lock); |
| 734 | proc_pid_flush(proc_dentry1); | 736 | proc_pid_flush(proc_dentry1); |
| 735 | proc_pid_flush(proc_dentry2); | 737 | proc_pid_flush(proc_dentry2); |
| 736 | |||
| 737 | BUG_ON(exit_state != EXIT_ZOMBIE); | ||
| 738 | } | 738 | } |
| 739 | 739 | ||
| 740 | /* | 740 | /* |
