summaryrefslogtreecommitdiffstats
path: root/bin/ps/Makefile
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1997-12-05 07:33:40 +0000
committerdyson <dyson@FreeBSD.org>1997-12-05 07:33:40 +0000
commite09d7daa420c02576b9d742d40a5c7563baba7ca (patch)
treed913c97a6c0398a8af456775dd95f1f77e960ebd /bin/ps/Makefile
parentb1d65d1edcac03a0c78eea5d6379ca0623f88a62 (diff)
downloadFreeBSD-src-e09d7daa420c02576b9d742d40a5c7563baba7ca.zip
FreeBSD-src-e09d7daa420c02576b9d742d40a5c7563baba7ca.tar.gz
Add an option to building PS, so that the upages are explicitly paged in only
for users who are root, or in group wheel. This is useful on large timesharing systems where a PS command can cause the system to grind to a halt. The ability to get the information isn't diminished for those who really need the additional detail (administrators.) Normal users won't see any difference unless the processes are swapped out. The "really get it mode" is invoked by the use of an additional flag in the command string "-f". New/old behavior is selectable with a compile option. PR: 5196 Submitted by: Matt Dillon <dillon@best.net>
Diffstat (limited to 'bin/ps/Makefile')
-rw-r--r--bin/ps/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/ps/Makefile b/bin/ps/Makefile
index 8d797bc..4e8d954 100644
--- a/bin/ps/Makefile
+++ b/bin/ps/Makefile
@@ -1,9 +1,15 @@
-# $Id: Makefile,v 1.9 1997/08/11 02:36:09 steve Exp $
+# $Id: Makefile,v 1.10 1997/08/13 17:35:00 steve Exp $
# @(#)Makefile 8.1 (Berkeley) 6/2/93
PROG= ps
SRCS= fmt.c keyword.c nlist.c print.c ps.c
-CFLAGS+=-I${.CURDIR}/../../sys
+#
+# To support "lazy" ps for non root/wheel users
+# add -DLAZY_PS to the cflags. This helps
+# keep ps from being an unnecessary load
+# on large systems.
+#
+CFLAGS+=-I${.CURDIR}/../../sys -DLAZY_PS
DPADD= ${LIBM} ${LIBKVM}
LDADD= -lm -lkvm
BINGRP= kmem
OpenPOWER on IntegriCloud