1
1
Fork 0
mirror of https://github.com/swaywm/sway synced 2024-05-26 12:06:17 +02:00
sway/include/sway.h
Mikkel Oscar Lyderik 5e253fdd9a 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.
2016-02-26 09:42:21 +01:00

7 lines
87 B
C

#ifndef _SWAY_SWAY_H
#define _SWAY_SWAY_H
void sway_terminate(int exit_code);
#endif