mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 09:10:17 +01:00
core: set _nm_utils_is_manager_process as first thing in daemon
This commit is contained in:
parent
f9f453994b
commit
6c5070da55
1 changed files with 2 additions and 2 deletions
|
|
@ -304,14 +304,14 @@ main(int argc, char *argv[])
|
|||
const char *const * warnings;
|
||||
int errsv;
|
||||
|
||||
_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);
|
||||
|
||||
_nm_utils_is_manager_process = TRUE;
|
||||
|
||||
main_loop = g_main_loop_new(NULL, FALSE);
|
||||
|
||||
/* we determine a first-start (contrary to a restart during the same boot)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue