diff options
author | Yetoo Happy <yetoohappy@gmail.com> | 2018-04-23 15:46:41 -0700 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2018-04-24 16:34:35 -0400 |
commit | d8a9dafa736742a0532ea54f7a25ef302778c6d8 (patch) | |
tree | 4c91f4f57f0b5cc2b5918625eecc17e7ca0f151e | |
parent | ef9977bf2118b2b7810a7669e128249d5ee91eab (diff) | |
download | gdm-d8a9dafa736742a0532ea54f7a25ef302778c6d8.tar.gz |
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
-rw-r--r-- | daemon/main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/daemon/main.c b/daemon/main.c index 4a5c5496..1b893fe0 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); |