diff options
Diffstat (limited to 'swaybar/main.c')
-rw-r--r-- | swaybar/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swaybar/main.c b/swaybar/main.c index 737ee647..c6bbc7a5 100644 --- a/swaybar/main.c +++ b/swaybar/main.c @@ -10,9 +10,9 @@ /* global bar state */ struct bar swaybar; -void sway_terminate(void) { +void sway_terminate(int exit_code) { bar_teardown(&swaybar); - exit(EXIT_FAILURE); + exit(exit_code); } void sig_handler(int signal) { |