Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14649
b: refs/heads/master
c: 962b564
h: refs/heads/master
i:
  14647: feb7d2e
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Nov 24, 2005
1 parent 8d2dda3 commit 84a1e45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8bf1101bd52573e0573e374d56d2feecdbb5e444
refs/heads/master: 962b564cf1ec8041e8890a3c3847e3a630a08f42
8 changes: 4 additions & 4 deletions trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ static inline int de_thread(struct task_struct *tsk)
if (!thread_group_leader(current)) {
struct task_struct *parent;
struct dentry *proc_dentry1, *proc_dentry2;
unsigned long exit_state, ptrace;
unsigned long ptrace;

/*
* Wait for the thread group leader to be a zombie.
Expand Down Expand Up @@ -726,15 +726,15 @@ static inline int de_thread(struct task_struct *tsk)
list_del(&current->tasks);
list_add_tail(&current->tasks, &init_task.tasks);
current->exit_signal = SIGCHLD;
exit_state = leader->exit_state;

BUG_ON(leader->exit_state != EXIT_ZOMBIE);
leader->exit_state = EXIT_DEAD;

write_unlock_irq(&tasklist_lock);
spin_unlock(&leader->proc_lock);
spin_unlock(&current->proc_lock);
proc_pid_flush(proc_dentry1);
proc_pid_flush(proc_dentry2);

BUG_ON(exit_state != EXIT_ZOMBIE);
}

/*
Expand Down

0 comments on commit 84a1e45

Please sign in to comment.