From 4ac9ae70836f53e6d351857aedc400151dc62f86 Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Tue, 2 Mar 1999 00:28:09 +0000 Subject: Fix thread/process tracking and differentiation for Linux threads emulation. Submitted by: Richard Seaman, Jr." Also clean some compiler warnings in surrounding code. --- sys/kern/kern_fork.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/kern/kern_fork.c') diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 1ee86ae241e3..2877636e63d3 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)kern_fork.c 8.6 (Berkeley) 4/8/94 - * $Id: kern_fork.c,v 1.54 1999/01/07 21:23:42 julian Exp $ + * $Id: kern_fork.c,v 1.55 1999/01/26 02:38:10 julian Exp $ */ #include "opt_ktrace.h" @@ -361,9 +361,10 @@ again: /* Note that we fill in the values of sigacts in vm_fork */ p2->p_sigacts = NULL; } - if (flags & RFLINUXTHPN) { + if (flags & RFLINUXTHPN) p2->p_sigparent = SIGUSR1; - } + else + p2->p_sigparent = SIGCHLD; /* bump references to the text vnode (for procfs) */ p2->p_textvp = p1->p_textvp; -- cgit v1.2.3