From d89582880ed81c38df67687eadfc0764b6ce5ddd Mon Sep 17 00:00:00 2001 From: Tom Date: Mon, 24 Aug 2020 19:35:19 -0600 Subject: Kernel: Switch singletons to use new Singleton class MemoryManager cannot use the Singleton class because MemoryManager::initialize is called before the global constructors are run. That caused the Singleton to be re-initialized, causing it to create another MemoryManager instance. Fixes #3226 --- Kernel/TTY/PTYMultiplexer.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Kernel/TTY/PTYMultiplexer.h') diff --git a/Kernel/TTY/PTYMultiplexer.h b/Kernel/TTY/PTYMultiplexer.h index 15bb4bdc19..17698009c5 100644 --- a/Kernel/TTY/PTYMultiplexer.h +++ b/Kernel/TTY/PTYMultiplexer.h @@ -40,6 +40,10 @@ public: PTYMultiplexer(); virtual ~PTYMultiplexer() override; + static void initialize() + { + the(); + } static PTYMultiplexer& the(); // ^CharacterDevice -- cgit v1.2.3