summaryrefslogtreecommitdiffstats
path: root/usr.bin/pkill
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2004-03-27 06:49:57 +0000
committergad <gad@FreeBSD.org>2004-03-27 06:49:57 +0000
commit0544a9076c8a6327e0833973c44ed444992f69eb (patch)
tree0f6652a38b9a0d8925b4746cf7dda0d7eb4653bf /usr.bin/pkill
parentdf297ea749f1b6a41c6c4a181e44756d7ae14015 (diff)
downloadFreeBSD-src-0544a9076c8a6327e0833973c44ed444992f69eb.zip
FreeBSD-src-0544a9076c8a6327e0833973c44ed444992f69eb.tar.gz
bde also tells me that he is confident that P_SYSTEM will not work
any better on 4.x than it does on 5.2. If that's true then there is no point to the __FreeBSD_version check that I had added.
Diffstat (limited to 'usr.bin/pkill')
-rw-r--r--usr.bin/pkill/pkill.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/usr.bin/pkill/pkill.c b/usr.bin/pkill/pkill.c
index 01b2ae0..4443416 100644
--- a/usr.bin/pkill/pkill.c
+++ b/usr.bin/pkill/pkill.c
@@ -68,15 +68,8 @@ __FBSDID("$FreeBSD$");
#define STATUS_BADUSAGE 2
#define STATUS_ERROR 3
-#ifdef __FreeBSD__
-#if __FreeBSD_version > 502000
+/* Check for system-processes which should always be ignored. */
#define IS_KERNPROC(kp) ((kp)->ki_flag & P_KTHREAD)
-#endif
-#endif
-
-#ifndef IS_KERNPROC
-#define IS_KERNPROC(kp) ((kp)->ki_flag & P_SYSTEM)
-#endif
enum listtype {
LT_GENERIC,
OpenPOWER on IntegriCloud