Date: Sat, 1 Oct 2011 17:14:01 +0000 From: Alexander Best <arundel@freebsd.org> To: Ed Schouten <ed@80386.nl> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Edward Tomasz Napierala <trasz@FreeBSD.org> Subject: Re: svn commit: r225868 - head/bin/ps Message-ID: <20111001171401.GA47100@freebsd.org> In-Reply-To: <20111001130643.GC91943@hoeg.nl> References: <201109290631.p8T6VgJ3008377@svn.freebsd.org> <20110929121457.GA53600@freebsd.org> <20111001130643.GC91943@hoeg.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat Oct 1 11, Ed Schouten wrote: > * Alexander Best <arundel@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@80386.nl> > WWW: http://80386.nl/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111001171401.GA47100>