Oops. Good catch. My mistake.
Linus, "getpid()" returns "tgid" not "pid", so this is correct.
Thanks!
Rusty.
diff -urN -I $.*$ --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal linux-2.5.25/kernel/futex.c working-2.5.25-futex/kernel/futex.c
--- linux-2.5.25/kernel/futex.c Fri Jun 21 09:41:56 2002
+++ working-2.5.25-futex/kernel/futex.c Sat Jul 13 13:24:43 2002
@@ -275,7 +275,7 @@
filp->f_dentry = dget(futex_dentry);
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;
-- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/