From dab8a0012017b46aeab061c8991632612b395aae Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Thu, 7 Feb 2013 11:08:58 +0000 Subject: Fix a copy-and-paste error when setting the unexpected exception handler (actually set the terminate handler by mistake). --- src/exception.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/exception.cc') diff --git a/src/exception.cc b/src/exception.cc index 4ccf38e..7f0d3e8 100644 --- a/src/exception.cc +++ b/src/exception.cc @@ -1387,7 +1387,7 @@ namespace std { if (thread_local_handlers) { return pathscale::set_unexpected(f); } - return ATOMIC_SWAP(&terminateHandler, f); + return ATOMIC_SWAP(&unexpectedHandler, f); } /** * Sets the function that is called to terminate the program. -- cgit v1.2.3