summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-03-15 21:18:31 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-03-15 21:18:31 +0000
commit03d04596c2b2654088b5daa72b8a2b94b8089afd (patch)
tree7c62c40751a1a04f7c532da222c1d056a3c080e3
parent952b2ae7f18b83ee30cdcb1fefa4577d4c8d3d95 (diff)
Print a '*' in front of curproc in ps in ddb.
-rw-r--r--sys/kern/kern_synch.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index 7e166e7cdf1..306c72eac95 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_synch.c,v 1.31 2001/02/27 09:07:53 csapuntz Exp $ */
+/* $OpenBSD: kern_synch.c,v 1.32 2001/03/15 21:18:30 art Exp $ */
/* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */
/*-
@@ -889,7 +889,8 @@ db_show_all_procs(addr, haddr, count, modif)
pp = p->p_pptr;
if (p->p_stat) {
- db_printf("%5d ", p->p_pid);
+ db_printf("%c%5d ", p == curproc ? '*' : ' ',
+ p->p_pid);
switch (*mode) {