diff options
-rw-r--r-- | bin/ps/ps.c | 4 | ||||
-rw-r--r-- | usr.bin/pkill/pkill.c | 4 | ||||
-rw-r--r-- | usr.bin/top/machine.c | 4 |
3 files changed, 3 insertions, 9 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c index 0577bfa1563..95f6f49b309 100644 --- a/bin/ps/ps.c +++ b/bin/ps/ps.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ps.c,v 1.54 2012/04/17 23:17:53 pirofti Exp $ */ +/* $OpenBSD: ps.c,v 1.55 2012/04/21 03:14:50 guenther Exp $ */ /* $NetBSD: ps.c,v 1.15 1995/05/18 20:33:25 mycroft Exp $ */ /*- @@ -341,8 +341,6 @@ main(int argc, char *argv[]) if (xflg == 0 && ((int)kinfo[i]->p_tdev == NODEV || (kinfo[i]->p_flag & P_CONTROLT ) == 0)) continue; - if (!showthreads && kinfo[i]->p_tid != -1) - continue; if (showthreads && kinfo[i]->p_tid == -1) continue; for (vent = vhead; vent; vent = vent->next) { diff --git a/usr.bin/pkill/pkill.c b/usr.bin/pkill/pkill.c index 8b09439992f..e5e0d93ec57 100644 --- a/usr.bin/pkill/pkill.c +++ b/usr.bin/pkill/pkill.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pkill.c,v 1.26 2012/04/12 14:59:19 pirofti Exp $ */ +/* $OpenBSD: pkill.c,v 1.27 2012/04/21 03:14:50 guenther Exp $ */ /* $NetBSD: pkill.c,v 1.5 2002/10/27 11:49:34 kleink Exp $ */ /*- @@ -257,8 +257,6 @@ main(int argc, char **argv) if ((kp->p_flag & (P_SYSTEM | P_THREAD)) != 0 || kp->p_pid == mypid) continue; - if (kp->p_tid != -1) - continue; if (matchargs) { if ((pargv = kvm_getargv(kd, kp, 0)) == NULL) 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 && |