Source-Changes-HG archive

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

[src/trunk]: src/sys/ddb Correct PPID of "show all procs/n"



details:   https://anonhg.NetBSD.org/src/rev/59990985c8a0
branches:  trunk
changeset: 969655:59990985c8a0
user:      hikaru <hikaru%NetBSD.org@localhost>
date:      Wed Feb 26 07:57:24 2020 +0000

description:
Correct PPID of "show all procs/n"

diffstat:

 sys/ddb/db_proc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r dd4a842220d2 -r 59990985c8a0 sys/ddb/db_proc.c
--- a/sys/ddb/db_proc.c Wed Feb 26 07:31:51 2020 +0000
+++ b/sys/ddb/db_proc.c Wed Feb 26 07:57:24 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_proc.c,v 1.10 2020/02/15 18:12:14 ad Exp $  */
+/*     $NetBSD: db_proc.c,v 1.11 2020/02/26 07:57:24 hikaru Exp $      */
 
 /*-
  * Copyright (c) 2009, 2020 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_proc.c,v 1.10 2020/02/15 18:12:14 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_proc.c,v 1.11 2020/02/26 07:57:24 hikaru Exp $");
 
 #ifndef _KERNEL
 #include <stdbool.h>
@@ -233,7 +233,7 @@
                                wbuf[0] = '\0';
                        }
                        db_printf("%8d %8d %10d %d %#7x %4d %16s %7.7s\n",
-                           p.p_pptr != NULL ? p.p_pid : -1, pgrp.pg_id,
+                           p.p_pptr != NULL ? p.p_pptr->p_pid : -1, pgrp.pg_id,
 #ifdef _KERNEL
                            kauth_cred_getuid(p.p_cred),
 #else



Home | Main Index | Thread Index | Old Index