diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-02-26 09:08:05 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-02-26 09:08:05 +0100 |
| commit | ee621a9e76df4f5c47ab3ee243d84d57075eac9f (patch) | |
| tree | 3bfaae22500ddfc326dfd4fa4b81bbab285a4c2f /include/sway.h | |
| parent | b1c41ae2b79d243744e7edceabb1b604d97685b9 (diff) | |
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.
Diffstat (limited to 'include/sway.h')
| -rw-r--r-- | include/sway.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
