Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/sys/kern Revert pullup ticket #316, because it breaks ker...
details: https://anonhg.NetBSD.org/src/rev/4311654db367
branches: netbsd-3
changeset: 575862:4311654db367
user: riz <riz%NetBSD.org@localhost>
date: Mon May 23 19:09:56 2005 +0000
description:
Revert pullup ticket #316, because it breaks kernel compiles. A more
complete pullup request is forthcoming.
(requested by cube in ticket #341)
diffstat:
sys/kern/kern_fork.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diffs (33 lines):
diff -r 3323d51983b3 -r 4311654db367 sys/kern/kern_fork.c
--- a/sys/kern/kern_fork.c Sun May 22 19:43:17 2005 +0000
+++ b/sys/kern/kern_fork.c Mon May 23 19:09:56 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_fork.c,v 1.121.2.1 2005/05/22 19:33:34 snj Exp $ */
+/* $NetBSD: kern_fork.c,v 1.121.2.2 2005/05/23 19:09:56 riz Exp $ */
/*-
* Copyright (c) 1999, 2001, 2004 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_fork.c,v 1.121.2.1 2005/05/22 19:33:34 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_fork.c,v 1.121.2.2 2005/05/23 19:09:56 riz Exp $");
#include "opt_ktrace.h"
#include "opt_systrace.h"
@@ -292,12 +292,9 @@
* Duplicate sub-structures as needed.
* Increase reference counts on shared objects.
* The p_stats and p_sigacts substructs are set in uvm_fork().
- * Inherit flags we want to keep. The flags related to SIGCHLD
- * handling are important in order to keep a consistent behaviour
- * for the child after the fork.
+ * Inherit SUGID, STOPFORK and STOPEXEC flags.
*/
- p2->p_flag = p1->p_flag & (P_SUGID | P_STOPFORK | P_STOPEXEC |
- P_NOCLDSTOP | P_NOCLDWAIT | P_CLDSIGIGN);
+ p2->p_flag = p1->p_flag & (P_SUGID | P_STOPFORK | P_STOPEXEC);
p2->p_emul = p1->p_emul;
p2->p_execsw = p1->p_execsw;
Home |
Main Index |
Thread Index |
Old Index