Date: Sat, 26 Oct 2002 10:58:12 -0700 (PDT) From: Andryan <silencer@blitzed.org> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/44502: ps -p pid shows process name when kern.ps_showallprocs=0 Message-ID: <200210261758.g9QHwCZP085350@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 44502
>Category: bin
>Synopsis: ps -p pid shows process name when kern.ps_showallprocs=0
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Oct 26 11:00:04 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Andryan
>Release: FreeBSD 4.7-STABLE
>Organization:
Blitzed IRC Network
>Environment:
FreeBSD skyla.altweb.net 4.7-STABLE FreeBSD 4.7-STABLE #0: Sat Oct 19 18:28:09 EST 2002 andryan@skyla.altweb.net:/usr/obj/usr/src/sys/SKYLA i386
>Description:
when ps -p pid is done, the process will show up even kern.ps_showallprocs=0
>How-To-Repeat:
sysctl -w kern.ps_showallprocs=0
ps -p 1
that will show the init process
if someone writes a script to do loop from 1 to certain number to get whole process list, that will be bad (kern.ps_showallprocs=0 will be useless)
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210261758.g9QHwCZP085350>
