svn commit: r225868 - head/bin/ps

Alexander Best arundel at freebsd.org
Sat Oct 1 17:14:01 UTC 2011


On Sat Oct  1 11, Ed Schouten wrote:
> * Alexander Best <arundel at freebsd.org>, 20110929 14:14:
> > i think i wrote you about the two spaces between the "TT" and "TIME" field
> > some time ago. you said that the "TT" entry can contain a postfix "-". can
> > you describe a situation, where this can occur? i've never seen the "TT" field
> > contain an entry larger than 2 chars.
> 
> Also, it would be better if we replaced the "??" string with "-". When
> we print "??", it actually means: this process has no controlling
> terminal, not that we don't know which TTY it is.

good point. also i was thinking: if a process had a controlling terminal, but
that terminal has been revoked, are users really interested to know what the
name of that revoked terminal was? can't we just use "-"? is it important to
know whether a process never had a controlling terminal, or had one at some
point, but not anymore?

also the ps(1) man page claims that a process running on console has a "TT"
entry of "con". i've never seen such an entry. is this still correct?

and the last point i'd like to make: looking at 'ps alx' on freebsd 7.x makes
it easy to distinguish between ttys and pts'es, because they are names ttyvX
and ttypX. looking at the same output under HEAD, all pts terminal descriptors
have moved to /dev/pts/X. so they will not show up as pX, but merely as X.

can't we tell ps to prefix anything coming from /dev/pts with a "p"?

in this output:

 1001 1780 1778   1  16  0   15956   3136 pause    Is    0    0:00,02 /usr/local/bin/zsh

users are supposed to know that the "0" stands for /dev/pts/0. imho

 1001 1780 1778   1  16  0   15956   3136 pause    Is   p0    0:00,02 /usr/local/bin/zsh

would be much better here (like under freebsd 7.x).

cheers.
alex

> 
> -- 
>  Ed Schouten <ed at 80386.nl>
>  WWW: http://80386.nl/




More information about the svn-src-all mailing list