diff options
| author | 2011-04-05 15:36:09 +0000 | |
|---|---|---|
| committer | 2011-04-05 15:36:09 +0000 | |
| commit | ec1b9a1dd560b9150e12c9988a3e22f38f608a96 (patch) | |
| tree | 3a4b33869c0fb70a8173e36296642a693d6f9505 /sys/compat/linux/linux_misc.c | |
| parent | Fix logic bug in debug code and enable spllower()/splraise(). (diff) | |
| download | wireguard-openbsd-ec1b9a1dd560b9150e12c9988a3e22f38f608a96.tar.xz wireguard-openbsd-ec1b9a1dd560b9150e12c9988a3e22f38f608a96.zip | |
Fix PID fetching -- noticed last night by guenther@.
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
| -rw-r--r-- | sys/compat/linux/linux_misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 455a62097d3..aa4c3746596 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_misc.c,v 1.66 2011/02/11 21:40:04 pirofti Exp $ */ +/* $OpenBSD: linux_misc.c,v 1.67 2011/04/05 15:36:09 pirofti Exp $ */ /* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */ /*- @@ -1225,7 +1225,7 @@ linux_sys_getpgid(p, v, retval) } */ *uap = v; struct process *targpr; - if (SCARG(uap, pid) != 0 && SCARG(uap, pid) != p->p_pid) { + if (SCARG(uap, pid) != 0 && SCARG(uap, pid) != p->p_p->ps_pid) { if ((targpr = prfind(SCARG(uap, pid))) == 0) return ESRCH; } @@ -1409,7 +1409,7 @@ linux_sys_getpid(p, v, retval) register_t *retval; { - *retval = p->p_pid; + *retval = p->p_p->ps_pid; return (0); } |
