diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2012-04-21 03:14:51 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2012-04-21 03:14:51 +0000 |
commit | 033c62c08a82d5b5e1c6b2be7fc485ac88c4e2b1 (patch) | |
tree | e35d99dcf6abe31534786a1f52a547a8f633be66 /usr.bin/top | |
parent | 13e70c8beb8d31b173fe1954c9aa55ecc77e72ca (diff) |
Remove a check made superfluous by the KERN_PROC_SHOW_THREADS flag.
This lets new binaries work (at least w/o the -H option) with old kernels.
ok pirofti@ deraadt@
Diffstat (limited to 'usr.bin/top')
-rw-r--r-- | usr.bin/top/machine.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 5b5db66f81e..8bdaf9f4d4c 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machine.c,v 1.71 2012/04/17 23:17:53 pirofti Exp $ */ +/* $OpenBSD: machine.c,v 1.72 2012/04/21 03:14:50 guenther Exp $ */ /*- * Copyright (c) 1994 Thorsten Lockert <tholo@sigmasoft.com> @@ -371,8 +371,6 @@ get_process_info(struct system_info *si, struct process_select *sel, * status field. Processes with P_SYSTEM set are system * processes---these get ignored unless show_system is set. */ - if (!show_threads && pp->p_tid != -1) - continue; if (show_threads && pp->p_tid == -1) continue; if (pp->p_stat != 0 && |