mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
main: Gracefully shut down on SIGINT as well as SIGTERM
This is mostly for use when testing a nested gnome-shell in a terminal: terminating it with Ctrl+C from that terminal should give the process an opportunity to save state on shutdown (such as the screen time limits history file). Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
parent
1369eba03a
commit
3d5beec553
1 changed files with 1 additions and 0 deletions
|
|
@ -589,6 +589,7 @@ init_signal_handlers (MetaContext *context)
|
|||
g_warning ("Failed to register SIGXFSZ handler: %s", g_strerror (errno));
|
||||
#endif
|
||||
|
||||
g_unix_signal_add (SIGINT, on_sigterm, context);
|
||||
g_unix_signal_add (SIGTERM, on_sigterm, context);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue