Re: Mysterious file descriptor behavior

From: Alex Fraser (me_at_privacy.net)
Date: 10/28/05


Date: Fri, 28 Oct 2005 17:48:42 +0100


<joe@invalid.address> wrote in message
news:m3hdb163sj.fsf@invalid.address...
> 50295@web.de writes:
[snip]
> > -bash-3.00$ ls -l /proc/$$/fd
> > total 4
> > lrwx------ 1 myname mygroup 64 Oct 28 16:34 0 -> /dev/pts/0
> > lrwx------ 1 myname mygroup 64 Oct 28 16:34 1 -> /dev/pts/0
> > lrwx------ 1 myname mygroup 64 Oct 28 16:34 2 -> /dev/pts/0
> > lrwx------ 1 myname mygroup 64 Oct 28 16:39 255 -> /dev/pts/0
[snip]
> Descriptor 255 isn't standard, it depends on the system as to what it
> means and whether it's there (it's not there on solaris for example).

Note that the command is listing the descriptors open in the shell.

Alex



Relevant Pages