summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <pwithnall@endlessos.org>2021-11-15 18:50:16 +0000
committerRay Strode <halfline@gmail.com>2021-12-10 14:53:40 +0000
commitc45cd9653ef8fbc87023ff2dd04fb3cdd4c33ed1 (patch)
tree77c38b2d9c12516f2f24796b820954821ab6a7c9
parent8cee73164bdbe57803312fe160037d78d6b1b812 (diff)
downloadgnome-session-c45cd9653ef8fbc87023ff2dd04fb3cdd4c33ed1.tar.gz
main: Fix a g_spawn() deprecation
`g_spawn_check_exit_status()` was deprecated in GLib 2.70 since it was misnamed. I have checked that the `status` here is actually a wait status, not an exit status. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
-rw-r--r--gnome-session/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnome-session/main.c b/gnome-session/main.c
index 443bc045..84df6ce7 100644
--- a/gnome-session/main.c
+++ b/gnome-session/main.c
@@ -244,7 +244,11 @@ check_gl (GError **error)
return FALSE;
}
+#if GLIB_CHECK_VERSION(2, 70, 0)
+ return g_spawn_check_wait_status (status, error);
+#else
return g_spawn_check_exit_status (status, error);
+#endif
}
static void