From 90a53aed59be6bac45c13eac954471d56ac23375 Mon Sep 17 00:00:00 2001 From: virchau13 Date: Sun, 28 Apr 2024 00:38:48 +0800 Subject: CrashReporter: fix deadlocks by making it mostly async-signal-safe (#5771) `CrashReporter::createAndSaveCrash()` is not async-signal-safe, resulting in random deadlocks/double-crashes during Hyprland crashes. This changes the function to be (mostly) async-signal-safe. --- src/plugins/PluginSystem.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/PluginSystem.hpp') diff --git a/src/plugins/PluginSystem.hpp b/src/plugins/PluginSystem.hpp index 944434fa..a442c31c 100644 --- a/src/plugins/PluginSystem.hpp +++ b/src/plugins/PluginSystem.hpp @@ -37,6 +37,8 @@ class CPluginSystem { CPlugin* getPluginByPath(const std::string& path); CPlugin* getPluginByHandle(HANDLE handle); std::vector getAllPlugins(); + size_t pluginCount(); + void sig_getPlugins(CPlugin** data, size_t len); bool m_bAllowConfigVars = false; std::string m_szLastError = ""; -- cgit v1.2.3