Date: Tue, 13 May 2003 22:54:30 +0200 From: Gerhard Sittig <Gerhard.Sittig@gmx.net> To: freebsd-current@FreeBSD.org Subject: Re: mtv leaves a zombie after exit Message-ID: <20030513225430.G26888@shell.gsinet.sittig.org> In-Reply-To: <3EC07EF9.9D8CA96C@mindspring.com>; from tlambert2@mindspring.com on Mon, May 12, 2003 at 10:13:29PM -0700 References: <200305121726.h4CHQOM7048113@gw.catspoiler.org> <3EC07EF9.9D8CA96C@mindspring.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 12, 2003 at 22:13 -0700, Terry Lambert wrote:
>
> A "ps -gaxl" will print the wait channel, which may be more
> informative.
Out of curiousity: What is the -g switch doing? `man ps` does
not list it (yes, I had my pager search for "-g", it's not just
the synopsis).
-------- 8< -------- snip snip -------- >8 --------
$ gunzip < /usr/share/man/man1/ps.1.gz | ident -
$FreeBSD: src/bin/ps/ps.1,v 1.61 2003/04/30 19:18:50 schweikh Exp $
$ man ps
PS(1) FreeBSD General Commands Manual PS(1)
NAME
ps -- process status
SYNOPSIS
ps [-aCcefhjlmrSTuvwxZ] [-M core] [-N system] [-O fmt] [-o fmt] [-p pid]
[-t tty] [-U username[,username...]]
ps [-L]
DESCRIPTION
...
-------- 8< -------- snip snip -------- >8 --------
Looking at the source (local, considered to be up to date) I saw this:
-------- 8< -------- snip snip -------- >8 --------
$ ident ps.c
$FreeBSD: src/bin/ps/ps.c,v 1.62 2003/02/05 13:18:17 charnier Exp $
$ $PAGER ps.c
...
while ((ch = getopt(argc, argv, PS_ARGS)) != -1)
switch((char)ch) {
case 'a':
all = 1;
break;
...
case 'g':
break; /* no-op */
...
-------- 8< -------- snip snip -------- >8 --------
Is the -g option there for compatibility reasons? Should the
manpage state this fact? BTW is `cvs log ps.c | grep -e -g`
empty, too.
virtually yours 82D1 9B9C 01DC 4FB4 D7B4 61BE 3F49 4F77 72DE DA76
Gerhard Sittig true | mail -s "get gpg key" Gerhard.Sittig@gmx.net
--
If you don't understand or are scared by any of the above
ask your parents or an adult to help you.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030513225430.G26888>
