summaryrefslogtreecommitdiff
path: root/usr.bin/top/display.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-05-06 07:53:30 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-05-06 07:53:30 +0000
commit41dedc398b1db3b21100adf3b08f705f0d4a5eb4 (patch)
treeaf1e5fd115c2c839e6ac788706110ab593de0acc /usr.bin/top/display.c
parent0a9bbd4d2392d8a784a4a1583aef6438b2994013 (diff)
Display thread IDs instead of the name of the process's owner when "-H"
is used. The rationnal is that when you're looking at threads you're generally already filtereing by PID and this allow you to see which thread is a pig. Written some time ago with mikeb@ ok sthen@, krw@, guenther@
Diffstat (limited to 'usr.bin/top/display.c')
-rw-r--r--usr.bin/top/display.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/top/display.c b/usr.bin/top/display.c
index 6797c5f2854..0b4b7f1eba4 100644
--- a/usr.bin/top/display.c
+++ b/usr.bin/top/display.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: display.c,v 1.48 2014/11/27 14:08:01 espie Exp $ */
+/* $OpenBSD: display.c,v 1.49 2015/05/06 07:53:29 mpi Exp $ */
/*
* Top users/processes display for Unix
@@ -100,6 +100,7 @@ int y_idlecursor;
int y_procs;
extern int ncpu;
extern int combine_cpus;
+extern struct process_select ps;
int header_status = Yes;