diff options
author | Dan Williams <dcbw@redhat.com> | 2014-05-14 15:50:33 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2014-06-06 13:43:45 -0500 |
commit | 5150cb88c26d13e8c7c188f4f10614b6d318ad89 (patch) | |
tree | 7c66a15e09767aa288530b6b6ff5fd8b148d762f /src/main.c | |
parent | 4cc13befd3cc242c5065ce6ea91e335b705b2f36 (diff) | |
download | NetworkManager-5150cb88c26d13e8c7c188f4f10614b6d318ad89.tar.gz |
dispatcher: only dispatch if scripts exist
If there are no dispatcher scripts, don't bother dispatching any
events. This saves some time configuring networking if the event
would have no effect anyway.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 4bd2b4324c..0ba65b0b8a 100644 --- a/src/main.c +++ b/src/main.c @@ -54,6 +54,7 @@ #include "nm-config.h" #include "nm-posix-signals.h" #include "nm-session-monitor.h" +#include "nm-dispatcher.h" #if !defined(NM_DIST_VERSION) # define NM_DIST_VERSION VERSION @@ -604,6 +605,8 @@ main (int argc, char *argv[]) dhcp_mgr = nm_dhcp_manager_get (); g_assert (dhcp_mgr != NULL); + nm_dispatcher_init (); + settings = nm_settings_new (&error); if (!settings) { nm_log_err (LOGD_CORE, "failed to initialize settings storage: %s", |