projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb92b4f
)
GApplication: don't iterate further on _quit()
author
Ryan Lortie
<desrt@desrt.ca>
Fri, 27 Feb 2015 12:50:28 +0000
(07:50 -0500)
committer
Ryan Lortie
<desrt@desrt.ca>
Mon, 2 Mar 2015 16:55:33 +0000
(11:55 -0500)
If someone explicitly calls g_application_quit() then don't attempt to
drain the mainloop of remaining sources.
This allows applications with 100% CPU utilisation to quit reliably.
https://bugzilla.gnome.org/show_bug.cgi?id=744876
gio/gapplication.c
patch
|
blob
|
history
diff --git
a/gio/gapplication.c
b/gio/gapplication.c
index
1fe12e9
..
c72ff53
100644
(file)
--- a/
gio/gapplication.c
+++ b/
gio/gapplication.c
@@
-2324,8
+2324,9
@@
g_application_run (GApplication *application,
g_settings_sync ();
- while (g_main_context_iteration (NULL, FALSE))
- ;
+ if (!application->priv->must_quit_now)
+ while (g_main_context_iteration (NULL, FALSE))
+ ;
return status;
}