Re: pre6 weird ps output

Albert D. Cahalan (acahalan@cs.uml.edu)
Sat, 3 Nov 2001 21:19:30 -0500 (EST)


Jeff Garzik writes:
> Jeff Garzik wrote:
>> [jgarzik@brutus rpm]$ ps xf
>> PID TTY STAT TIME COMMAND
>> 16013 pts/1 S 0:00 -bash
>> 32105 pts/1 R 0:00 ps xf
>> 15858 pts/0 S 0:00 -bash
>> 15889 pts/0 S 0:02 /bin/sh /usr/bin/rpm-rebuilder
>> 30660 /tmp/rpm/other_clisp-2.27-1mdk.src.rpm.log S 0:00 \_
>> /usr/lib/rpm/rpmb

Your TTY is /tmp/rpm/other_clisp-2.27-1mdk.src.rpm.log isn't it?
(it is a char device that matches what /proc/*/stat reports)

> Further clue: kill ssh session and log back in later, and ps output
> [from a different pty] is normal.

This may be because ps from a different pty is unable to see
the real pathname in /proc/*/fd/ and must guess via other means.

The whole name resolution process is really gross. It would be
wonderful to have a /proc/*/tty symlink to examine.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/