Rethrow abi::__forced_unwind in wxThread code under Unix.

We must always rethrow the special abi::__forced_unwind exception when
handling exception in threads under Linux as the NPTL simply terminates the
process at first opportunity if this exception is not rethrown.

See http://udrepper.livejournal.com/21541.html for more details.

Closes #14626.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-09-20 23:00:44 +00:00
parent 9b9a7c3331
commit e02ea2030c
4 changed files with 84 additions and 33 deletions

View File

@@ -1591,9 +1591,15 @@ case "${host}" in
;;
esac
dnl POSIX needs this for select(), but old systems don't have it
if test "$USE_UNIX" = 1 ; then
dnl POSIX needs this for select(), but old systems don't have it
AC_CHECK_HEADERS([sys/select.h],,, [AC_INCLUDES_DEFAULT()])
dnl Header defining C++ ABI is currently only available with g++ but test
dnl for it unconditionally in case it becomes supported by other compilers.
AC_LANG_PUSH(C++)
AC_CHECK_HEADERS([cxxabi.h],,, [AC_INCLUDES_DEFAULT()])
AC_LANG_POP()
fi
dnl ---------------------------------------------------------------------------