mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 19:20:12 +01:00
config: add handler for SIGHUP and a reload-configuration stub
(cherry picked from commit d62022e28a)
This commit is contained in:
parent
a56fe5ae0c
commit
3a5fb56b60
4 changed files with 18 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ signal_handling_thread (void *arg)
|
|||
break;
|
||||
case SIGHUP:
|
||||
/* Reread config stuff like system config files, VPN service files, etc */
|
||||
nm_log_info (LOGD_CORE, "caught signal %d, not supported yet.", signo);
|
||||
nm_main_config_reload ();
|
||||
break;
|
||||
case SIGPIPE:
|
||||
/* silently ignore signal */
|
||||
|
|
|
|||
|
|
@ -41,4 +41,9 @@ gboolean nm_main_utils_early_setup (const char *progname,
|
|||
gpointer option_context_hook_data,
|
||||
const char *summary);
|
||||
|
||||
/* 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);
|
||||
|
||||
#endif /* __MAIN_UTILS_H__ */
|
||||
|
|
|
|||
|
|
@ -208,6 +208,12 @@ _init_nm_debug (const char *debug)
|
|||
_set_g_fatal_warnings ();
|
||||
}
|
||||
|
||||
void
|
||||
nm_main_config_reload ()
|
||||
{
|
||||
nm_log_info (LOGD_CORE, "reloading configuration not supported.");
|
||||
}
|
||||
|
||||
static void
|
||||
manager_configure_quit (NMManager *manager, gpointer user_data)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -510,6 +510,12 @@ main (int argc, char *argv[])
|
|||
/*******************************************************/
|
||||
/* Stub functions */
|
||||
|
||||
void
|
||||
nm_main_config_reload ()
|
||||
{
|
||||
nm_log_info (LOGD_CORE, "reloading configuration not supported");
|
||||
}
|
||||
|
||||
gconstpointer nm_config_get (void);
|
||||
const char *nm_config_get_dhcp_client (gpointer unused);
|
||||
gboolean nm_config_get_configure_and_quit (gpointer unused);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue