0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd::mods: Disable interruption during dlopen() / static init.

This commit is contained in:
Jason Volk 2018-12-15 17:22:30 -08:00
parent 4216e939c8
commit 5d7f971b89

View file

@ -84,6 +84,12 @@ try
//,mangles{mods::mangles(path)}
,handle{[this, &path, &mode]
{
// Can't interrupt this ctx during the dlopen() as long as exceptions
// coming out of static inits are trouble (which they are at this time).
// Note this device will throw any pending interrupts during construction
// and destruction but not during its lifetime.
const ctx::uninterruptible ui;
const auto ours([]
{
log::critical