Friday, November 04, 2005

how many file descriptors does the Xnewt process have open?

> When this happens, how many file descriptors does the Xnewt
> process have open? ('ls -l /proc/<pid>/fd' or something
> similar.)
>

With ls -l /proc/<pid>/fd | wc -l

227 for a fresh GNOME session and one gnome-terminal window open
222 for a fresh XFCE4 session and one xterminal window open

(different PIDs for each of these checks)

A given process is:

root 10091 9074 2 12:09 ? 00:00:00 /usr/X11R6/bin/Xnewt :26
-auth /var/lib/wdm/authdir/authfiles/A:26-AY24Hr -dpms

This is interesting, because here is some of the 'ls -l /proc/10091/fd'
output.

lrwx------ 1 root root 64 Mar 16 12:11 10 ->
/var/lib/wdm/authdir/authfiles/A:12-d8mxzX (deleted)
lrwx------ 1 root root 64 Mar 16 12:11 100 ->
/var/lib/wdm/authdir/authfiles/A:11-QHkbcU (deleted)
lrwx------ 1 root root 64 Mar 16 12:11 101 ->
/var/lib/wdm/authdir/authfiles/A:11-bbVcHq (deleted)
lrwx------ 1 root root 64 Mar 16 12:11 102 ->
/var/lib/wdm/authdir/authfiles/A:27-FVil3v (deleted)
lrwx------ 1 root root 64 Mar 16 12:11 103 ->
/var/lib/wdm/authdir/authfiles/A:9-1iqtPQ (deleted)
lrwx------ 1 root root 64 Mar 16 12:11 104 ->
/var/lib/wdm/authdir/authfiles/A:28-ZcO3OP (deleted)
lrwx------ 1 root root 64 Mar 16 12:11 105 ->
/var/lib/wdm/authdir/authfiles/A:11-65HZQD (deleted)
lrwx------ 1 root root 64 Mar 16 12:11 106 ->
/var/lib/wdm/authdir/authfiles/A:16-J7pYyu (deleted)
lrwx------ 1 root root 64 Mar 16 12:11 107 ->
/var/lib/wdm/authdir/authfiles/A:11-RYJlqJ (deleted)

2 Comments:

Blogger Maha Ravi said...

This blog explains the details of most popular technological details. This helps to learn about what are all the different method is there. And the working methods all of that are explained here. Informative blog.
Sharepoint Training in Chennai

7:17 AM  
Blogger anupavi said...


Excellent way of describing, and nice post.you are posting such a new idea is very interesting and give updates.
Digital Marketing Company in Chennai

7:09 AM  

Post a Comment

<< Home