aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/main.c b/shell/main.c
index 95dc1b9ff4..8e1d533546 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -613,7 +613,11 @@ main (gint argc, gchar **argv)
}
#ifdef G_OS_UNIX
-#if GLIB_CHECK_VERSION(2,29,5)
+#if GLIB_CHECK_VERSION(2,29,19)
+ g_unix_signal_add_full (
+ G_PRIORITY_DEFAULT, SIGTERM,
+ handle_term_signal, NULL, NULL);
+#elif GLIB_CHECK_VERSION(2,29,5)
g_unix_signal_add_watch_full (
SIGTERM, G_PRIORITY_DEFAULT,
handle_term_signal, NULL, NULL);