Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2161
b: refs/heads/master
c: c2a0f59
h: refs/heads/master
i:
  2159: e7fd1cc
v: v3
  • Loading branch information
Linus Torvalds committed Jun 18, 2005
1 parent c85e4de commit 8c54997
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 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: c83d9945c05570ba6b8ec5460c99d1ab7c6e6671
refs/heads/master: c2a0f5943d8935766a42b2d0870aa4c645e3423d
16 changes: 6 additions & 10 deletions trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ static inline int de_thread(struct task_struct *tsk)
}
sig->group_exit_task = NULL;
sig->notify_count = 0;
sig->real_timer.data = (unsigned long)current;
spin_unlock_irq(lock);

/*
Expand All @@ -675,10 +676,8 @@ static inline int de_thread(struct task_struct *tsk)
proc_dentry2 = proc_pid_unhash(leader);
write_lock_irq(&tasklist_lock);

if (leader->tgid != current->tgid)
BUG();
if (current->pid == current->tgid)
BUG();
BUG_ON(leader->tgid != current->tgid);
BUG_ON(current->pid == current->tgid);
/*
* An exec() starts a new thread group with the
* TGID of the previous thread group. Rehash the
Expand Down Expand Up @@ -726,8 +725,7 @@ static inline int de_thread(struct task_struct *tsk)
proc_pid_flush(proc_dentry1);
proc_pid_flush(proc_dentry2);

if (exit_state != EXIT_ZOMBIE)
BUG();
BUG_ON(exit_state != EXIT_ZOMBIE);
release_task(leader);
}

Expand Down Expand Up @@ -772,10 +770,8 @@ static inline int de_thread(struct task_struct *tsk)
kmem_cache_free(sighand_cachep, oldsighand);
}

if (!thread_group_empty(current))
BUG();
if (!thread_group_leader(current))
BUG();
BUG_ON(!thread_group_empty(current));
BUG_ON(!thread_group_leader(current));
return 0;
}

Expand Down

0 comments on commit 8c54997

Please sign in to comment.