diff --git a/daemon/main.c b/daemon/main.c index 0a4c63c..df2151a 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -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);