Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpkern Initialize p_pgrp when creating a ...



details:   https://anonhg.NetBSD.org/src/rev/6aeab29c3415
branches:  trunk
changeset: 754749:6aeab29c3415
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue May 11 14:57:20 2010 +0000

description:
Initialize p_pgrp when creating a new process structure (and not
only for proc0).  This makes something work.  I just can't remember
what it was anymore.

diffstat:

 sys/rump/librump/rumpkern/rump.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r c7356bfa3299 -r 6aeab29c3415 sys/rump/librump/rumpkern/rump.c
--- a/sys/rump/librump/rumpkern/rump.c  Tue May 11 14:49:07 2010 +0000
+++ b/sys/rump/librump/rumpkern/rump.c  Tue May 11 14:57:20 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump.c,v 1.170 2010/05/01 14:40:36 pooka Exp $ */
+/*     $NetBSD: rump.c,v 1.171 2010/05/11 14:57:20 pooka Exp $ */
 
 /*
  * Copyright (c) 2007 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.170 2010/05/01 14:40:36 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.171 2010/05/11 14:57:20 pooka Exp $");
 
 #include <sys/systm.h>
 #define ELFSIZE ARCH_ELFSIZE
@@ -522,6 +522,7 @@
                p->p_emul = &emul_netbsd;
                p->p_fd = fd_init(NULL);
                p->p_lock = mutex_obj_alloc(MUTEX_DEFAULT, IPL_NONE);
+               p->p_pgrp = &rump_pgrp;
                l->l_cred = rump_cred_suserget();
        } else {
                p = &proc0;



Home | Main Index | Thread Index | Old Index