[gdm/gnome-3-28] daemon: Don't call g_option_context_set_ignore_unknown_options
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/gnome-3-28] daemon: Don't call g_option_context_set_ignore_unknown_options
- Date: Thu, 17 May 2018 14:17:58 +0000 (UTC)
commit 85a68ab14aad3d83abe1317d0c067f4d80a4dc82
Author: Yetoo Happy <yetoohappy gmail com>
Date: Mon Apr 23 15:46:41 2018 -0700
daemon: Don't call g_option_context_set_ignore_unknown_options
When using unknown command line options with the GDM daemon, the
program hangs until explicitly getting killed.
This commit addresses that bug by dropping an unnecessary call to
g_option_context_set_ignore_unknown_options, so GOptionContext will
now give an error when encountering unknown options.
https://bugzilla.gnome.org/show_bug.cgi?id=795494
daemon/main.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/daemon/main.c b/daemon/main.c
index 4a5c549..1b893fe 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -329,7 +329,6 @@ main (int argc,
context = g_option_context_new (_("GNOME Display Manager"));
g_option_context_add_main_entries (context, entries, NULL);
- g_option_context_set_ignore_unknown_options (context, TRUE);
error = NULL;
res = g_option_context_parse (context, &argc, &argv, &error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]