0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

ircd: Attempt to find a current exception in terminate().

This commit is contained in:
Jason Volk 2019-02-07 21:57:25 -08:00
parent b430661bba
commit 8926e0d1f1

View file

@ -259,9 +259,7 @@ noexcept
ircd::terminate::terminate()
noexcept
{
fputs("\nIRCd Terminated.\n", stderr);
::fflush(stderr);
std::terminate();
terminate(std::current_exception());
}
ircd::terminate::terminate(std::exception_ptr eptr)
@ -276,7 +274,7 @@ noexcept
terminate{e};
}
fputs("\nIRCd Terminate without exception\n", stderr);
fputs("\nIRCd Terminated.\n", stderr);
::fflush(stderr);
std::terminate();
}