From 5b2a157778e975a6f66720deca07a3aeed07cafc Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sun, 14 Jul 2002 03:14:19 -0700 Subject: [PATCH] A fix for futex "getpid()" returns "tgid" not "pid", so this is correct. Fix from Saurabh Desai. --- kernel/futex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel') 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; -- cgit v1.2.3