aboutsummaryrefslogtreecommitdiff
path: root/sway/log.c
diff options
context:
space:
mode:
authorminus <minus@mnus.de>2015-08-20 15:12:34 +0200
committerminus <minus@mnus.de>2015-08-20 15:27:56 +0200
commitf26ed32e460f3007e623c529d28562f4a0b261cd (patch)
tree20194ff714e5351a435746b89aab17a9944dc934 /sway/log.c
parent70f046c87a1fc03c3b3132bf3b05d2e4c4495805 (diff)
added sway_terminate to exit cleanly
Diffstat (limited to 'sway/log.c')
-rw-r--r--sway/log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/log.c b/sway/log.c
index e8c1b78f..6e01421b 100644
--- a/sway/log.c
+++ b/sway/log.c
@@ -1,4 +1,5 @@
#include "log.h"
+#include "sway.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
@@ -42,7 +43,7 @@ void sway_abort(const char *format, ...) {
vfprintf(stderr, format, args);
va_end(args);
fprintf(stderr, "\n");
- exit(1);
+ sway_terminate();
}
void sway_log(int verbosity, const char* format, ...) {