Date: Tue, 30 Nov 2004 16:28:05 -0800 From: Peter Wemm <peter@wemm.org> To: freebsd-arch@freebsd.org Cc: cperciva@freebsd.org Subject: Re: ps -e without procfs(5). Message-ID: <200411301628.05476.peter@wemm.org> In-Reply-To: <20041130231236.GD56431@darkness.comp.waw.pl> References: <20041130231236.GD56431@darkness.comp.waw.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 30 November 2004 03:12 pm, Pawel Jakub Dawidek wrote: > Hello. > > I need some testing for this patch: > > http://people.freebsd.org/~pjd/patches/ps-e.patch > > It allows to use 'ps -e' without procfs(5) mounted. > I decided to disable this functionality by default, because procfs(5) > is also disabled by default and some people may already depend on the > fact, that environment is a secret by default. > To see the effects, you need to increase sysctl > kern.ps_env_cache_limit to for example 1024. ps -e is "live" and reads the environment from the process. It looks like your patch adds a once-only snapshot of the exec-time values.. I've only ever used "ps -e" to figure out what the current live values are, I'd be more interested in a ptrace based replacement.. -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411301628.05476.peter>