Mail Archives: djgpp-workers/2001/09/23/14:11:30
> Is it possible that handles 3 and 4 are somehow already closed, or
> otherwise invalid, when stdiohk.c gets to fflush and close them? You
Seems very unlikely; I inserted the fclose() just before the call to
exit(), so any such problems would have to occur in exit(), before the
stdio hook. But all that happens there is atexit handling and
destructors. So unless there is some library destructor that could
have such an effect, that seems VERY unlikely.
> should see some kind of failure indications from fflush and/or close
> if that's the case.
I'll add some more fprintf()s and see what it gives.
> Another possibility is that some code purges the buffered characters
> before stdiohk.c fflushes them.
Again, I don't see any opportunity for that.
> fseek comes to mind (it does fflush when it purges, but perhaps
> there's a bug). Looking at the FILE object of the stream,
specifically
> at f->_ptr and f->_cnt, might tell something interesting.
Will add those to the printf's.
- Raw text -