diff --git a/modules/libcom/src/osi/epicsThread.cpp b/modules/libcom/src/osi/epicsThread.cpp index b67c8bf29..b1273fd55 100644 --- a/modules/libcom/src/osi/epicsThread.cpp +++ b/modules/libcom/src/osi/epicsThread.cpp @@ -16,6 +16,7 @@ #include #include +#include #include #include @@ -78,10 +79,8 @@ void epicsThread :: printLastChanceExceptionMessage ( "with type \"%s\" in thread \"%s\" at %s\n", pExceptionContext, pExceptionTypeName, name, date ); errlogFlush (); - // This behavior matches the C++ implementation when an exception - // isn't handled by the thread code. Users can install their own - // application-specific unexpected handler if preferred. - std::unexpected (); + + abort(); } extern "C" void epicsThreadCallEntryPoint ( void * pPvt )