From 5484f308b9aa53ab9c13d670d84a7fc35d447c1a Mon Sep 17 00:00:00 2001 From: Ian Fan Date: Thu, 14 Feb 2019 15:43:34 +0000 Subject: swaybar: prevent signal handler from firing during termination This prevents a heap-use-after-free crash when sway terminates. --- include/swaybar/bar.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/swaybar') diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h index 2d9ba0d9..2518d5aa 100644 --- a/include/swaybar/bar.h +++ b/include/swaybar/bar.h @@ -46,6 +46,8 @@ struct swaybar { #if HAVE_TRAY struct swaybar_tray *tray; #endif + + bool running; }; struct swaybar_output { -- cgit v1.2.3