Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11853
b: refs/heads/master
c: 7407251
h: refs/heads/master
i:
  11851: 83ee250
v: v3
  • Loading branch information
Coywolf Qi Hunt authored and Linus Torvalds committed Oct 31, 2005
1 parent 5079f17 commit d91868c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 40dc565122ed1e180a0637f88cdfca734d33db78
refs/heads/master: 7407251a0e2ed099e4b12b742b635503e981507c
10 changes: 5 additions & 5 deletions trunk/kernel/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -783,10 +783,6 @@ static void exit_notify(struct task_struct *tsk)
/* If the process is dead, release it - nobody will wait for it */
if (state == EXIT_DEAD)
release_task(tsk);

/* PF_DEAD causes final put_task_struct after we schedule. */
preempt_disable();
tsk->flags |= PF_DEAD;
}

fastcall NORET_TYPE void do_exit(long code)
Expand Down Expand Up @@ -873,7 +869,11 @@ fastcall NORET_TYPE void do_exit(long code)
tsk->mempolicy = NULL;
#endif

BUG_ON(!(current->flags & PF_DEAD));
/* PF_DEAD causes final put_task_struct after we schedule. */
preempt_disable();
BUG_ON(tsk->flags & PF_DEAD);
tsk->flags |= PF_DEAD;

schedule();
BUG();
/* Avoid "noreturn function does return". */
Expand Down

0 comments on commit d91868c

Please sign in to comment.