From 41358c6fb579e440ccb72bb79a7bfb859944b3a6 Mon Sep 17 00:00:00 2001 From: Mykola Perehudov Date: Thu, 6 Jul 2023 16:24:49 +0300 Subject: Cleanup compositor deadcode (#2657) * Remove dead code as it is a part of CCompositor::cleanup * Unify sd_notify logic with Compositor lifetime --- src/Compositor.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index b15414e1..ae3ef109 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -310,6 +310,11 @@ void CCompositor::cleanup() { m_bIsShuttingDown = true; +#ifdef USES_SYSTEMD + if (sd_booted() > 0) + sd_notify(0, "STOPPING=1"); +#endif + // unload all remaining plugins while the compositor is // still in a normal working state. g_pPluginSystem->unloadAllPlugins(); -- cgit v1.2.3