Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Add proc0 to pidhashtbl so pfind(0) works.



details:   https://anonhg.NetBSD.org/src/rev/74a403b6fcd2
branches:  trunk
changeset: 486777:74a403b6fcd2
user:      jhawk <jhawk%NetBSD.org@localhost>
date:      Sun May 28 18:52:32 2000 +0000

description:
Add proc0 to pidhashtbl so pfind(0) works.
Now trace/t 0 works in ddb, etc.

diffstat:

 sys/kern/init_main.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 45b876305c9c -r 74a403b6fcd2 sys/kern/init_main.c
--- a/sys/kern/init_main.c      Sun May 28 18:31:13 2000 +0000
+++ b/sys/kern/init_main.c      Sun May 28 18:52:32 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init_main.c,v 1.169 2000/05/28 05:49:05 thorpej Exp $  */
+/*     $NetBSD: init_main.c,v 1.170 2000/05/28 18:52:32 jhawk Exp $    */
 
 /*
  * Copyright (c) 1995 Christopher G. Demetriou.  All rights reserved.
@@ -240,6 +240,7 @@
         */
        s = proclist_lock_write();
        LIST_INSERT_HEAD(&allproc, p, p_list);
+       LIST_INSERT_HEAD(PIDHASH(p->p_pid), p, p_hash);
        proclist_unlock_write(s);
 
        p->p_pgrp = &pgrp0;



Home | Main Index | Thread Index | Old Index