config: pass signals to nm_config_reload()

Also react on SIGUSR1 and SIGUSR2, beside SIGHUP.
Only for SIGHUP actually reload the configuration from
disc. For the other signals only emit a config-changed
signal.
This commit is contained in:
Thomas Haller
2015-06-25 21:10:32 +02:00
parent c2754ede5c
commit caed15e082
7 changed files with 77 additions and 29 deletions

View File

@@ -44,6 +44,6 @@ gboolean nm_main_utils_early_setup (const char *progname,
/* The following functions are not implemented inside nm-main-utils.c, instead
* main.c and nm-iface-helper.c */
void nm_main_config_reload (void);
void nm_main_config_reload (int signal);
#endif /* __MAIN_UTILS_H__ */