summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-11-14 11:45:51 -0500
committerDan Winship <danw@gnome.org>2014-11-15 09:48:42 -0500
commit543416e5f624caf98d99c1c654bbdb3bb15904d3 (patch)
tree8833612cabba1079daa269379fc9ee27160ff6af /src/main.c
parentfb773f6b2ff224126a95424ed73904bb6885455b (diff)
downloadNetworkManager-543416e5f624caf98d99c1c654bbdb3bb15904d3.tar.gz
libnm-core: add _nm_utils_is_manager_process
Add a variable indicating whether the process is the NetworkManager daemon.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index dd06f8f70a..b3206fb44e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -59,6 +59,7 @@
#include "nm-dispatcher.h"
#include "nm-settings.h"
#include "nm-auth-manager.h"
+#include "nm-core-internal.h"
#if !defined(NM_DIST_VERSION)
# define NM_DIST_VERSION VERSION
@@ -231,6 +232,8 @@ main (int argc, char *argv[])
{NULL}
};
+ _nm_utils_is_manager_process = TRUE;
+
main_loop = g_main_loop_new (NULL, FALSE);
if (!nm_main_utils_early_setup ("NetworkManager",