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:
parent
4216e939c8
commit
5d7f971b89
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue