abort() bug

Eric Blake ebb9@byu.net
Mon Jun 9 12:12:00 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Christopher Faylor on 6/6/2008 11:54 AM:
|> Any reason that cygwin abort() closes all stdio streams prior to issuing
|> SIGABRT?
|>
|> In other words, I think that signal.cc needs to rearrange the
|> _GLOBAL_REENT->__cleanup to occur _after_ _my_tls.call_signal_handler.
|
| I think you're right.  The call to call_signal_handler was added years
| after the addition of the cleanup so it would make sense to move the
| cleanup handling after that.
|
| Want to submit a patch?

Sure.

2008-06-09  Eric Blake  <ebb9@byu.net>

	* signal.cc (abort): Only flush streams after signal handler.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhNHggACgkQ84KuGfSFAYAIbQCglNJ0n46HGjTn1tcGqt7gEqbI
QgIAn08olZlxWhW9kaz+zjigM7PEcXpL
=xFlg
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygwin.patch12
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20080609/bd532d94/attachment.ksh>


More information about the Cygwin-patches mailing list