mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
added sway_terminate to exit cleanly
This commit is contained in:
parent
70f046c87a
commit
f26ed32e46
5 changed files with 19 additions and 6 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, ...) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue