[mutter/wip/carlosg/drop-caps: 2/7] core: Move unix signal handler later in the process
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/drop-caps: 2/7] core: Move unix signal handler later in the process
- Date: Sun, 10 Nov 2019 10:43:05 +0000 (UTC)
commit e81b89a8cfdf443d53896a49ca0fa8396b5d6b73
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed May 8 14:18:23 2019 +0200
core: Move unix signal handler later in the process
This does spawn a thread, so better to leave for late(r) initialization.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/923
src/core/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/core/main.c b/src/core/main.c
index 16aa8736a..35e71a4ef 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -553,8 +553,6 @@ meta_init (void)
g_strerror (errno));
#endif
- g_unix_signal_add (SIGTERM, on_sigterm, NULL);
-
if (g_getenv ("MUTTER_VERBOSE"))
meta_set_verbose (TRUE);
if (g_getenv ("MUTTER_DEBUG"))
@@ -575,6 +573,8 @@ meta_init (void)
meta_set_is_wayland_compositor (TRUE);
#endif
+ g_unix_signal_add (SIGTERM, on_sigterm, NULL);
+
if (g_get_home_dir ())
if (chdir (g_get_home_dir ()) < 0)
meta_warning ("Could not change to home directory %s.\n",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]