[3454] in Athena Bugs
libcurses.a(initsrc.o) bug
daemon@ATHENA.MIT.EDU (Ken Raeburn)
Thu Oct 19 19:55:23 1989
Date: Thu, 19 Oct 89 17:53:45 -0400
From: Ken Raeburn <Raeburn@MIT.EDU>
To: bugs@ATHENA.MIT.EDU
(Don't ask how I ran across this....)
The initialization of the curses library includes a search for a file
descriptor connected to the terminal. A loop is run, starting with
file descriptor zero, calling isatty() on each, until a terminal is
found.
This loop is written to stop when the file descriptor number matches
another variable, but this other variable is going to contain stack
garbage; so, if all file descriptors are redirected to files, it runs
for a long time. Furthermore, I'm not convinced that the code
immediately following will cope with the lack of a terminal well at
all.