mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd: Attempt to find a current exception in terminate().
This commit is contained in:
parent
b430661bba
commit
8926e0d1f1
1 changed files with 2 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue