Commit eb2e58fd authored by Paul Larson's avatar Paul Larson Committed by Linus Torvalds

[PATCH] Include tgid when finding next_safe in get_pid()

Include tgid when finding next_safe in get_pid()
parent 270ebb5c
......@@ -186,6 +186,8 @@ static int get_pid(unsigned long flags)
next_safe = p->pid;
if(p->pgrp > last_pid && next_safe > p->pgrp)
next_safe = p->pgrp;
if(p->tgid > last_pid && next_safe > p->tgid)
next_safe = p->tgid;
if(p->session > last_pid && next_safe > p->session)
next_safe = p->session;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment