summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorluoqi <luoqi@FreeBSD.org>1999-02-17 21:03:14 +0000
committerluoqi <luoqi@FreeBSD.org>1999-02-17 21:03:14 +0000
commit8812d69a9a094ae0c9e84599b9caa8dfbb128735 (patch)
treebb36f46f8849bbbcbaf33926db1f107441a447e7 /sys/kern/init_main.c
parent64dde860b462638b1c97865f9bb75e63d490a33d (diff)
downloadFreeBSD-src-8812d69a9a094ae0c9e84599b9caa8dfbb128735.zip
FreeBSD-src-8812d69a9a094ae0c9e84599b9caa8dfbb128735.tar.gz
Initialize procsig0.ps_refcnt to 1 (instead of 2), this would silence
complaints about ps_refcnt greater than two when we try to fork() a kthread from proc0 with RFSIGSHARE flag set. Noticed by: Tor Egge <tegge@fast.no> Reviewed by: Richard Seaman, Jr. <dick@tar.com>
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index d3447f4..393d5b6 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* @(#)init_main.c 8.9 (Berkeley) 1/21/94
- * $Id: init_main.c,v 1.106 1999/01/29 23:18:48 dillon Exp $
+ * $Id: init_main.c,v 1.107 1999/01/30 19:36:02 msmith Exp $
*/
#include "opt_devfs.h"
@@ -414,7 +414,7 @@ proc0_init(dummy)
/* Create procsig. */
p->p_procsig = &procsig0;
- p->p_procsig->ps_refcnt = 2;
+ p->p_procsig->ps_refcnt = 1;
/* Create the file descriptor table. */
fdp = &filedesc0;
OpenPOWER on IntegriCloud