* signal.cc (abort): Call _GLOBAL_REENT's __cleanup.

This commit is contained in:
Corinna Vinschen 2005-01-03 18:06:26 +00:00
parent a6f8d3d6c6
commit 1a063c5030
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2005-01-03 Corinna Vinschen <corinna@vinschen.de>
* signal.cc (abort): Call _GLOBAL_REENT's __cleanup.
2005-01-03 Corinna Vinschen <corinna@vinschen.de>
* syscalls.cc (setmode): Call _fwalk with _GLOBAL_REENT.

View File

@ -331,8 +331,8 @@ abort (void)
be flushed.
However this is the way FreeBSD does it, and it is much easier to
do things this way, so... */
if (_REENT->__cleanup)
_REENT->__cleanup (_REENT);
if (_GLOBAL_REENT->__cleanup)
_GLOBAL_REENT->__cleanup (_GLOBAL_REENT);
/* Ensure that SIGABRT can be caught regardless of blockage. */
sigset_t sig_mask;