summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1999-03-02 00:28:09 +0000
committerjulian <julian@FreeBSD.org>1999-03-02 00:28:09 +0000
commit7e163b4f0313f73dd74ac128673638762d5aaeba (patch)
tree92cee78761b7ef19b2318d7e5b963a3552b8a2f7 /sys/kern/kern_fork.c
parent0674f5c758dac16d84023df4db88655d5a532e42 (diff)
downloadFreeBSD-src-7e163b4f0313f73dd74ac128673638762d5aaeba.zip
FreeBSD-src-7e163b4f0313f73dd74ac128673638762d5aaeba.tar.gz
Fix thread/process tracking and differentiation for Linux threads emulation.
Submitted by: Richard Seaman, Jr." <dick@tar.com> Also clean some compiler warnings in surrounding code.
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 1ee86ae..2877636 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;
OpenPOWER on IntegriCloud