[gdm] 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] daemon: Don't call g_option_context_set_ignore_unknown_options
- Date: Tue, 24 Apr 2018 20:35:13 +0000 (UTC)
commit d8a9dafa736742a0532ea54f7a25ef302778c6d8
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]