Ah ha, when firefox browses a pdf, then pstree can't see it.
$ ps -e|grep xpdf
 2507 ?        00:00:01 xpdf.bin
And 
$ pstree -plA
        |-xcinterm-big5(2349)---crxvt-big5(2350)---bash(2351)---pstree(2524)
        `-xdm(2207)-+-XFree86(2221)
                    `-xdm(2222)---sh(2247)-+-icewm(2300)
                                           |-sh(2294)---firefox-bin(2357)
                                           
|-sh(2298)---emacs(2365)-+-emacsserver(2376)
$ pstree -plA|grep 2507
$

C> Is there something unusual about the kernel you are running?
2.6.8-2-k7
C> Can you send me the stat and status files of one of the xpdf processes,
$ more /proc/2507/stat*|cat
::::::::::::::
/proc/2507/stat
::::::::::::::
2507 (xpdf.bin) S 2506 2247 2207 0 -1 0 22986 0 1 0 144 54 0 0 16 0 1 0 153256 
22642688 2286 4294967295 134512640 135243276 3221224080 3221223024 1079579832 0 
0 4096 0 0 0 0 17 0 0 0
::::::::::::::
/proc/2507/statm
::::::::::::::
5528 2286 4345 222 0 5306 0
::::::::::::::
/proc/2507/status
::::::::::::::
Name:   xpdf.bin
State:  S (sleeping)
SleepAVG:       90%
Tgid:   2507
Pid:    2507
PPid:   2506
TracerPid:      0
Uid:    1000    1000    1000    1000
Gid:    1000    1000    1000    1000
FDSize: 256
Groups: 20 24 29 1000 1004 
VmSize:    22112 kB
VmLck:         0 kB
VmRSS:      9144 kB
VmData:     4696 kB
VmStk:        36 kB
VmExe:       716 kB
VmLib:      5972 kB
Threads:        1
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000000001000
SigCgt: 0000000000000000
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
C> someone suggested you may have a terminal with not many columns and the
C> xpdf was found "off the screen".
hurmf. P.S.,
$ head /proc/2506/status
Name:   firefox-bin
State:  S (sleeping)
SleepAVG:       79%
Tgid:   2357
Pid:    2506
PPid:   2357
$ xpdf & #start another
$ ps -e|grep xpdf
 2507 ?        00:00:01 xpdf.bin
 2540 pts/0    00:00:00 xpdf.bin
$ pstree -plA|grep xpdf
        |                                                     `-xpdf.bin(2540)
$ ls /proc/2507/fd/ /proc/2540/fd/
/proc/2507/fd/:
0  10  12  14  17  19  20  22  24  26  3  5  7
1  11  13  15  18  2   21  23  25  27  4  6  8

/proc/2540/fd/:
0  1  2  3
$ ls /proc/2540/fd/[0-3] -og
lrwx------  1 64 2005-03-09 23:55 /proc/2540/fd/0 -> /dev/pts/0
lrwx------  1 64 2005-03-09 23:55 /proc/2540/fd/1 -> /dev/pts/0
lrwx------  1 64 2005-03-09 23:52 /proc/2540/fd/2 -> /dev/pts/0
lrwx------  1 64 2005-03-09 23:55 /proc/2540/fd/3 -> socket:[14302]
$ ls /proc/2507/fd/[0-3] -og
lr-x------  1 64 2005-03-09 23:54 /proc/2507/fd/0 -> /dev/null
l-wx------  1 64 2005-03-09 23:54 /proc/2507/fd/1 -> 
/home/jidanni/.xsession-errors
l-wx------  1 64 2005-03-09 23:54 /proc/2507/fd/2 -> 
/home/jidanni/.xsession-errors
lrwx------  1 64 2005-03-09 23:54 /proc/2507/fd/3 -> socket:[11013]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to