[901] in Athena Bugs
Re: attach problems with file descriptors
daemon@ATHENA.MIT.EDU (John T Kohl)
Mon Sep 12 10:14:13 1988
Date: Mon, 12 Sep 88 10:13:42 EDT
From: John T Kohl <jtkohl@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
In-Reply-To: bugs [0882]
2) There is some kind of weirdness on the RT which handles file
descriptor allocation. For example, a freshly started program has FD
0, 1, 2, 17, 18, and 19 open.
I believe 17, 18, and 19 are the C shell's versions of std{in,out,err}.
They *should* be closing themselves on a fork/exec, but who knows?
Check out the close-on-exec code in the RT sources.
John