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.
This commit is contained in:
Mikkel Oscar Lyderik 2016-02-26 09:08:05 +01:00
parent 40b3215444
commit 5e253fdd9a
9 changed files with 24 additions and 20 deletions

View file

@ -1,6 +1,6 @@
#ifndef _SWAY_SWAY_H
#define _SWAY_SWAY_H
void sway_terminate(void);
void sway_terminate(int exit_code);
#endif