summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIan Fan <ianfan0@gmail.com>2019-02-14 15:43:34 +0000
committerDrew DeVault <sir@cmpwn.com>2019-02-18 15:11:48 -0500
commit47abc45e867043b9144cc7a7181d08203d7ec4f2 (patch)
treeea3d270c931178a43eb8e28657808c84570b3ef2 /include
parent8d708b8e1d804198a2c6a53342def6d1505845db (diff)
swaybar: prevent signal handler from firing during termination
This prevents a heap-use-after-free crash when sway terminates.
Diffstat (limited to 'include')
-rw-r--r--include/swaybar/bar.h2
1 files changed, 2 insertions, 0 deletions
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 {