diff options
author | dyson <dyson@FreeBSD.org> | 1997-12-05 07:33:40 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1997-12-05 07:33:40 +0000 |
commit | e09d7daa420c02576b9d742d40a5c7563baba7ca (patch) | |
tree | d913c97a6c0398a8af456775dd95f1f77e960ebd /bin/ps/Makefile | |
parent | b1d65d1edcac03a0c78eea5d6379ca0623f88a62 (diff) | |
download | FreeBSD-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/Makefile | 10 |
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 |