Added SIGTERM kill signal handling

This commit is contained in:
OlliC 2018-04-14 11:44:54 +02:00 committed by Marc Di Luzio
parent 1f12bcb892
commit c0a2d53981

View File

@ -133,6 +133,9 @@ int main(int argc, char *argv[])
if (signal(SIGINT, sigint_handler) == SIG_ERR) {
FATAL_ERRORNO("Could not catch SIGINT");
}
if (signal(SIGTERM, sigint_handler) == SIG_ERR) {
FATAL_ERRORNO("Could not catch SIGTERM");
}
/* Run the main dbus message loop */
game_mode_context_loop(context);