From 5e253fdd9ac5c8733203eec9870aa0ca2cd238fd Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Date: Fri, 26 Feb 2016 09:08:05 +0100 Subject: Correctly exit sway on errors. Calling `exit` in sway_terminate prevents sway from correctly shutting down (freeing data, cleanly terminating the ipc server, etc.). A better way is to exit straight away if the failure occurs before `wlc_run` and use sway_abort as usual if it occur when wlc is running. --- include/sway.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/sway.h') diff --git a/include/sway.h b/include/sway.h index 6499c81d..b5cfb668 100644 --- a/include/sway.h +++ b/include/sway.h @@ -1,6 +1,6 @@ #ifndef _SWAY_SWAY_H #define _SWAY_SWAY_H -void sway_terminate(void); +void sway_terminate(int exit_code); #endif -- cgit v1.2.3