 | | This error is especially common when porting older programs to newer systems, because the library used to automatically clear the end-of-file condition on stdin if it referred to a terminal device. This behavior was changed several years ago to make things more consistent. Fortunately, it's easy to detect the problem—if the program goes into an infinite loop of reprinting the prompt after you type CTRL-D, you need to add a call to clearerr. | |
|