Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30260
b: refs/heads/master
c: c1df7fb
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Jun 26, 2006
1 parent 3d34459 commit 5f240b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: a872ff0cb2218dc9688b990c5ccda064dc40946b
refs/heads/master: c1df7fb88a011b39ea722ac00975c5b8a803261b
14 changes: 7 additions & 7 deletions trunk/fs/proc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -2267,15 +2267,15 @@ static struct task_struct *first_tid(struct task_struct *leader,
*/
static struct task_struct *next_tid(struct task_struct *start)
{
struct task_struct *pos;
struct task_struct *pos = NULL;
rcu_read_lock();
pos = start;
if (pid_alive(start))
if (pid_alive(start)) {
pos = next_thread(start);
if (pid_alive(pos) && (pos != start->group_leader))
get_task_struct(pos);
else
pos = NULL;
if (thread_group_leader(pos))
pos = NULL;
else
get_task_struct(pos);
}
rcu_read_unlock();
put_task_struct(start);
return pos;
Expand Down

0 comments on commit 5f240b3

Please sign in to comment.