[4260] in Athena Bugs
re: tcsh: doesn't clean up file descriptors
daemon@ATHENA.MIT.EDU (John T Kohl)
Mon Feb 19 09:24:41 1990
Date: Mon, 19 Feb 90 09:24:23 -0500
From: John T Kohl <jtkohl@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Cc: jik@ATHENA.MIT.EDU
In-Reply-To: [4259]
The bug Jon reports may be a kernel sleeper; the "high" file descriptors
are used internally by csh and are SUPPOSED to be set to close-on-exec,
in which case they shouldn't be open!
I tried your test on the vax, and it prints:
[{1}lycus:~/src]
% cc -o /tmp/foo_csh foo_tcsh.c
[{1}lycus:~/src]
% /tmp/foo_csh
File descriptor 0 is open.
File descriptor 1 is open.
File descriptor 2 is open.
[{1}lycus:~/src]
%
It IS a problem on the DECstation 3100; I will look into it (Ultrix and
BSD have slightly different FIOCLEX semantics...ech!)
John