Commit 68660571 by Mumit Khan Committed by Jeff Law

close.c (f_exit): Reset f__init so that f_clos does not (incorrectly) think there is an I/O...

        * libI77/close.c (f_exit): Reset f__init so that f_clos does not
        (incorrectly) think there is an I/O recursion when program is
        interrupted.

From-SVN: r16565
parent 8baa713c
Tue Nov 18 09:49:04 1997 Mumit Khan (kahn@xraylity.wisc.edu)
* libI77/close.c (f_exit): Reset f__init so that f_clos does not
(incorrectly) think there is an I/O recursion when program is
interrupted.
Sat Nov 1 18:03:42 1997 Jeffrey A Law (law@cygnus.com)
* libF77/signal_.c: Undo last change until we can fix it right.
......
......@@ -75,6 +75,10 @@ f_exit(void)
static cllist xx;
if (! (f__init & 1))
return; /* Not initialized, so no open units. */
/* no more I/O to be done. If this is not done, then if the
program is interrupted during I/O, f_clos thinks, incorrectly,
that there is an I/O recursion. */
f__init &= ~2;
if (!xx.cerr) {
xx.cerr=1;
xx.csta=NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment