diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2005-12-04 21:21:47 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2005-12-04 21:21:47 +0000 |
commit | c97f71cbe005cae34f9db5673aea3b3492ccd7f1 (patch) | |
tree | 83a00e46e9d9b3392a4a66eecc4e0e5d9aeceb84 /sys | |
parent | 2ba2f084f16d38e938553b4940795537b0f2a910 (diff) |
forgot to set P_THREAD for threaded processes
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_fork.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 7123eb5be37..fd26a81b0c8 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_fork.c,v 1.79 2005/12/03 18:09:08 tedu Exp $ */ +/* $OpenBSD: kern_fork.c,v 1.80 2005/12/04 21:21:46 tedu Exp $ */ /* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */ /* @@ -286,6 +286,7 @@ fork1(struct proc *p1, int exitsig, int flags, void *stack, size_t stacksize, LIST_INIT(&p2->p_children); if (flags & FORK_THREAD) { + p2->p_flag |= P_THREAD; p2->p_thrparent = p1->p_thrparent; LIST_INSERT_HEAD(&p1->p_thrparent->p_thrchildren, p2, p_thrsib); } else { |