mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-05 12:56:49 +02:00
Added SIGTERM kill signal handling
This commit is contained in:
@@ -133,6 +133,9 @@ int main(int argc, char *argv[])
|
|||||||
if (signal(SIGINT, sigint_handler) == SIG_ERR) {
|
if (signal(SIGINT, sigint_handler) == SIG_ERR) {
|
||||||
FATAL_ERRORNO("Could not catch SIGINT");
|
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 */
|
/* Run the main dbus message loop */
|
||||||
game_mode_context_loop(context);
|
game_mode_context_loop(context);
|
||||||
|
Reference in New Issue
Block a user