lkml.org 
[lkml]   [2001]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: pre6 weird ps output
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:12    [W:0.062 / U:1.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site