mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 13:08:10 +02:00
merge: branch 'rr/fix-avc-error'
core: delay D-Bus type initialization for --print-config https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2376
This commit is contained in:
commit
22f4e74942
1 changed files with 6 additions and 6 deletions
|
|
@ -298,12 +298,6 @@ main(int argc, char *argv[])
|
|||
|
||||
_nm_utils_is_manager_process = TRUE;
|
||||
|
||||
/* Known to cause a possible deadlock upon 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_DBUS_MANAGER);
|
||||
|
||||
/* we determine a first-start (contrary to a restart during the same boot)
|
||||
* based on the existence of NM_CONFIG_DEVICE_STATE_DIR directory. */
|
||||
config_cli = nm_config_cmd_line_options_new(
|
||||
|
|
@ -328,6 +322,12 @@ main(int argc, char *argv[])
|
|||
exit(result);
|
||||
}
|
||||
|
||||
/* Known to cause a possible deadlock upon 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_DBUS_MANAGER);
|
||||
|
||||
nm_main_utils_ensure_not_running_pidfile(global_opt.pidfile);
|
||||
|
||||
nm_main_utils_ensure_statedir();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue