mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +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()
|
ircd::terminate::terminate()
|
||||||
noexcept
|
noexcept
|
||||||
{
|
{
|
||||||
fputs("\nIRCd Terminated.\n", stderr);
|
terminate(std::current_exception());
|
||||||
::fflush(stderr);
|
|
||||||
std::terminate();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ircd::terminate::terminate(std::exception_ptr eptr)
|
ircd::terminate::terminate(std::exception_ptr eptr)
|
||||||
|
@ -276,7 +274,7 @@ noexcept
|
||||||
terminate{e};
|
terminate{e};
|
||||||
}
|
}
|
||||||
|
|
||||||
fputs("\nIRCd Terminate without exception\n", stderr);
|
fputs("\nIRCd Terminated.\n", stderr);
|
||||||
::fflush(stderr);
|
::fflush(stderr);
|
||||||
std::terminate();
|
std::terminate();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue