diff options
author | minus <minus@mnus.de> | 2015-08-20 15:12:34 +0200 |
---|---|---|
committer | minus <minus@mnus.de> | 2015-08-20 15:27:56 +0200 |
commit | f26ed32e460f3007e623c529d28562f4a0b261cd (patch) | |
tree | 20194ff714e5351a435746b89aab17a9944dc934 /sway/log.c | |
parent | 70f046c87a1fc03c3b3132bf3b05d2e4c4495805 (diff) |
added sway_terminate to exit cleanly
Diffstat (limited to 'sway/log.c')
-rw-r--r-- | sway/log.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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, ...) { |