mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:28:11 +00:00
UserspaceEmulator: Skip destroying the Emulator object on shutdown
There are some destruction order races that can cause hangs while shutting down UE. Since there's no particular value right now in destroying the Emulator object properly, just avoid destruction and add a FIXME about looking into it later.
This commit is contained in:
parent
b5b535aa81
commit
647e92b74f
1 changed files with 2 additions and 1 deletions
|
@ -68,7 +68,8 @@ int main(int argc, char** argv, char** env)
|
|||
environment.append(env[i]);
|
||||
}
|
||||
|
||||
UserspaceEmulator::Emulator emulator(arguments, environment, move(elf));
|
||||
// FIXME: It might be nice to tear down the emulator properly.
|
||||
auto& emulator = *new UserspaceEmulator::Emulator(arguments, environment, move(elf));
|
||||
if (!emulator.load_elf())
|
||||
return 1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue