[6514] in Athena Bugs
andrew messages file descriptor usage
daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Sun Dec 2 21:26:57 1990
To: bugs@ATHENA.MIT.EDU
Date: Sun, 02 Dec 90 21:26:46 EST
From: John Carr <jfc@ATHENA.MIT.EDU>
% ofiles 399
user process command
jfc 399 runapp
text = file inode 1243073806 on block device ffff8df0
cwd = directory inode 1920 on local fs 10e (/u2)
fd #0 = character special device /dev/ttyap16
fd #1 = file inode 8 on local fs a00 (/tmp)
fd #2 = (internet internet datagram socket)
18.72.0.117 1200 -> 18.72.0.117 2018
fd #3 = (unix-domain unix-domain stream socket)
fd #4 = file inode 2884 on local fs 116 (/usr)
fd #5 = (internet internet datagram socket)
1204 -> 0
fd #6 = file inode 21 on local fs a00 (/tmp)
fd #7 = character special device /dev/kmem
fd #9 = (internet internet datagram socket)
1328 -> 0
Most of these file descriptors should not be open (1 is stdout and 3 appears
to be the X server, the rest I think should go away):
0: This is the tty messages was started on. It is no longer needed
and should be closed. Possibly it should disconnect from the tty
(messages, ez, etc., will die when started from a shell without job
control the next time ^C is pressed).
2: I don't trust closing stderr; this should probably be left
however the user set it. Port 2018 is not in /etc/services. This
port should be documented or not used.
4: This is /usr/vice/etc/cacheinfo. There is no reason for this to
be opened in our environment. In any case, it should have been
closed after use.
5: I have no idea what this is. Port 1204 is not in /etc/services.
6: This is a deleted file in /tmp.
7: I don't trust andrew messages looking into /dev/kmem. There is
nothing there it needs to know or can reliably parse.
8: See #5