[mutter/wip/carlosg/drop-caps: 3/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: 3/7] core: Move unix signal handler later in the process
- Date: Fri, 8 Nov 2019 14:54:48 +0000 (UTC)
commit d93b1568fe3b2a8c7a7482582d3751930ef43ce6
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 628167f3c..ce4c625f2 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -557,8 +557,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"))
@@ -584,6 +582,8 @@ meta_init (void)
capng_apply (CAPNG_SELECT_BOTH);
#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]