diff options
author | Ian Fan <ianfan0@gmail.com> | 2019-02-14 15:43:34 +0000 |
---|---|---|
committer | Ian Fan <ianfan0@gmail.com> | 2019-02-15 14:09:14 +0000 |
commit | 5484f308b9aa53ab9c13d670d84a7fc35d447c1a (patch) | |
tree | ea3d270c931178a43eb8e28657808c84570b3ef2 /include | |
parent | 96de2b539c00992003664d0de225cc28c2fb9e54 (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.h | 2 |
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 { |