mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-22 05:50:49 +02:00
core: register G_TYPE_SOCKET early
Concurrent registrations later on can cause a deadlock due to a GLib bug. https://bugzilla.gnome.org/show_bug.cgi?id=754795
This commit is contained in:
parent
2b129cd8da
commit
9a88d72fd4
1 changed files with 6 additions and 0 deletions
|
|
@ -257,6 +257,12 @@ main (int argc, char *argv[])
|
|||
|
||||
nm_g_type_init ();
|
||||
|
||||
/* Known to cause a possible deadlock unpon GDBus initialization:
|
||||
* https://bugzilla.gnome.org/show_bug.cgi?id=674885 */
|
||||
g_type_ensure (G_TYPE_SOCKET);
|
||||
g_type_ensure (G_TYPE_DBUS_CONNECTION);
|
||||
g_type_ensure (NM_TYPE_BUS_MANAGER);
|
||||
|
||||
_nm_utils_is_manager_process = TRUE;
|
||||
|
||||
main_loop = g_main_loop_new (NULL, FALSE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue