summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_dummy.c
diff options
context:
space:
mode:
authorpirofti <pirofti@openbsd.org>2011-04-05 15:36:09 +0000
committerpirofti <pirofti@openbsd.org>2011-04-05 15:36:09 +0000
commitec1b9a1dd560b9150e12c9988a3e22f38f608a96 (patch)
tree3a4b33869c0fb70a8173e36296642a693d6f9505 /sys/compat/linux/linux_dummy.c
parentFix logic bug in debug code and enable spllower()/splraise(). (diff)
downloadwireguard-openbsd-ec1b9a1dd560b9150e12c9988a3e22f38f608a96.tar.xz
wireguard-openbsd-ec1b9a1dd560b9150e12c9988a3e22f38f608a96.zip
Fix PID fetching -- noticed last night by guenther@.
Diffstat (limited to 'sys/compat/linux/linux_dummy.c')
-rw-r--r--sys/compat/linux/linux_dummy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_dummy.c b/sys/compat/linux/linux_dummy.c
index 64b0ca3b9a7..65bdf45571b 100644
--- a/sys/compat/linux/linux_dummy.c
+++ b/sys/compat/linux/linux_dummy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_dummy.c,v 1.16 2004/10/27 13:23:38 niklas Exp $ */
+/* $OpenBSD: linux_dummy.c,v 1.17 2011/04/05 15:36:09 pirofti Exp $ */
/*-
* Copyright (c) 1994-1995 Søren Schmidt
@@ -52,7 +52,7 @@ static int
unsupported_msg(struct proc *p, const char *fname)
{
printf("linux: syscall %s is obsolete or not implemented (pid=%ld)\n",
- fname, (long)p->p_pid);
+ fname, (long)p->p_p->ps_pid);
return (ENOSYS);
}