[mutter/wip/carlosg/rt-scheduler: 3/5] 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/rt-scheduler: 3/5] core: Move unix signal handler later in the process
- Date: Wed, 8 May 2019 12:35:14 +0000 (UTC)
commit dd9be158c780b43c21b070a1b451b54afbffb93f
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.
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 e28c4c406..f523085f0 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -544,8 +544,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"))
@@ -593,6 +591,8 @@ meta_init (void)
meta_backend_post_init (meta_get_backend ());
+ g_unix_signal_add (SIGTERM, on_sigterm, NULL);
+
#ifdef HAVE_WAYLAND
/* Bring up Wayland. This also launches Xwayland and sets DISPLAY as well... */
if (meta_is_wayland_compositor ())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]