Commit 5b2a1577 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] A fix for futex

"getpid()" returns "tgid" not "pid", so this is correct.

Fix from Saurabh Desai.
parent afa29791
......@@ -276,7 +276,7 @@ static int futex_fd(struct list_head *head,
filp->f_dentry = dget(futex_mnt->mnt_root);
if (signal) {
filp->f_owner.pid = current->pid;
filp->f_owner.pid = current->tgid;
filp->f_owner.uid = current->uid;
filp->f_owner.euid = current->euid;
filp->f_owner.signum = signal;
......
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