summaryrefslogtreecommitdiff
path: root/sys/kern/kern_prot.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-11-07 00:26:34 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-11-07 00:26:34 +0000
commitbd87d530432bb59e0e8e9945eb3552c2580af213 (patch)
tree094ceb36ef2db9352c5687de586c5176477f3c21 /sys/kern/kern_prot.c
parent174c1a4b3e7ca128b5540d3419d42f4d056e96af (diff)
Split PID from TID, giving processes a PID unrelated to the TID of their
initial thread ok jsing@ kettenis@
Diffstat (limited to 'sys/kern/kern_prot.c')
-rw-r--r--sys/kern/kern_prot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c
index ec9322bc426..9fae1d747c6 100644
--- a/sys/kern/kern_prot.c
+++ b/sys/kern/kern_prot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_prot.c,v 1.66 2016/09/02 18:11:28 tedu Exp $ */
+/* $OpenBSD: kern_prot.c,v 1.67 2016/11/07 00:26:32 guenther Exp $ */
/* $NetBSD: kern_prot.c,v 1.33 1996/02/09 18:59:42 christos Exp $ */
/*
@@ -78,7 +78,7 @@ int
sys_getthrid(struct proc *p, void *v, register_t *retval)
{
- *retval = p->p_pid + THREAD_PID_OFFSET;
+ *retval = p->p_tid + THREAD_PID_OFFSET;
return (0);
}