diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2013-09-22 17:28:35 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2013-09-22 17:28:35 +0000 |
commit | f8caf955c3775ce75e26a7247df8959d1c2230cc (patch) | |
tree | e3eb5e1bdb728245e5fa1f77bb5b3b94e2ae6980 /usr.bin/pkill | |
parent | 9a50a70472a4c05f1f8bfd17e5a13abd50327b78 (diff) |
Stop merging the per-thread and per-process flags when reporting
them via sysctl(KERN_PROC). In struct kinfo_proc the per-process
flags move to p_psflags, leaving the per-thread flags in p_flags.
Flag descriptions in ps(1) updated to be less obtuse.
discussed with matthew@ some time ago; ok jca@, manpage bits ok jmc@
Diffstat (limited to 'usr.bin/pkill')
-rw-r--r-- | usr.bin/pkill/pkill.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/pkill/pkill.c b/usr.bin/pkill/pkill.c index cc0d65848b4..931a7235c34 100644 --- a/usr.bin/pkill/pkill.c +++ b/usr.bin/pkill/pkill.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pkill.c,v 1.32 2013/06/03 04:17:37 tedu Exp $ */ +/* $OpenBSD: pkill.c,v 1.33 2013/09/22 17:28:34 guenther Exp $ */ /* $NetBSD: pkill.c,v 1.5 2002/10/27 11:49:34 kleink Exp $ */ /*- @@ -362,7 +362,7 @@ main(int argc, char **argv) SLIST_FOREACH(li, &tdevlist, li_chain) { if (li->li_number == -1 && - (kp->p_flag & P_CONTROLT) == 0) + (kp->p_psflags & PS_CONTROLT) == 0) break; if (kp->p_tdev == (uid_t)li->li_number) break; |