summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2002-07-14 03:14:19 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-07-14 03:14:19 -0700
commit5b2a157778e975a6f66720deca07a3aeed07cafc (patch)
tree40b6740e2822d667d8d38acd899db05e5ad5a816
parentafa29791e02868f0fa3e37914b117520780b1f35 (diff)
[PATCH] A fix for futex
"getpid()" returns "tgid" not "pid", so this is correct. Fix from Saurabh Desai.
-rw-r--r--kernel/futex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/futex.c b/kernel/futex.c
index 4f108c29a5e6..dca7e1a84864 100644
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -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;