Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern add siginfo lock and siginfo queue initialization.



details:   https://anonhg.NetBSD.org/src/rev/e300dcc4bf6f
branches:  trunk
changeset: 552024:e300dcc4bf6f
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Sep 16 12:06:07 2003 +0000

description:
add siginfo lock and siginfo queue initialization.

diffstat:

 sys/kern/kern_fork.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 32c179aa75d2 -r e300dcc4bf6f sys/kern/kern_fork.c
--- a/sys/kern/kern_fork.c      Tue Sep 16 12:05:49 2003 +0000
+++ b/sys/kern/kern_fork.c      Tue Sep 16 12:06:07 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_fork.c,v 1.110 2003/08/07 16:31:45 agc Exp $      */
+/*     $NetBSD: kern_fork.c,v 1.111 2003/09/16 12:06:07 christos Exp $ */
 
 /*-
  * Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_fork.c,v 1.110 2003/08/07 16:31:45 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_fork.c,v 1.111 2003/09/16 12:06:07 christos Exp $");
 
 #include "opt_ktrace.h"
 #include "opt_systrace.h"
@@ -274,6 +274,8 @@
        memcpy(&p2->p_startcopy, &p1->p_startcopy,
            (unsigned) ((caddr_t)&p2->p_endcopy - (caddr_t)&p2->p_startcopy));
 
+       simple_lock_init(&p2->p_sigctx.ps_silock);
+       CIRCLEQ_INIT(&p2->p_sigctx.ps_siginfo);
        simple_lock_init(&p2->p_lwplock);
        LIST_INIT(&p2->p_lwps);
 



Home | Main Index | Thread Index | Old Index