Bruno Haible <bruno <at> clisp.org> writes: > Yes, we need line numbers before we can do anything about it. > > > Since POSIX [1] now says that abort() *MAY* flush the stdio streams (not > *SHOULD* any more!), we need to flush it ourselves.
Even POSIX 2008 states only this (remembering that fclose implies fflush): The abnormal termination processing shall include the default actions defined for SIGABRT and may include an attempt to effect fclose( ) on all open streams. in a CX shaded paragraph, which means C99 doesn't require it. So your patch is correct. > > I applied this patch. Thanks. I tweaked the ChangeLog to mention that it is also required on mingw. -- Eric Blake