Merge branch 'master' into authd-framework-2
This commit is contained in:
commit
f49198a67f
2 changed files with 7 additions and 3 deletions
|
@ -29,9 +29,10 @@ static void handle_stat(int parc, char *parv[]);
|
||||||
|
|
||||||
rb_helper *authd_helper = NULL;
|
rb_helper *authd_helper = NULL;
|
||||||
authd_cmd_handler authd_cmd_handlers[256] = {
|
authd_cmd_handler authd_cmd_handlers[256] = {
|
||||||
|
<<<<<<< HEAD
|
||||||
['C'] = handle_new_connection,
|
['C'] = handle_new_connection,
|
||||||
['D'] = resolve_dns,
|
['D'] = resolve_dns,
|
||||||
['H'] = handle_reload,
|
['R'] = handle_reload,
|
||||||
['S'] = handle_stat,
|
['S'] = handle_stat,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -67,7 +68,10 @@ handle_reload(int parc, char *parv[])
|
||||||
|
|
||||||
if(parc < 2)
|
if(parc < 2)
|
||||||
{
|
{
|
||||||
warn_opers(L_CRIT, "BUG: handle_reload received too few parameters (at least 2 expected, got %d)", parc);
|
/* Reload all handlers */
|
||||||
|
for(size_t i = 0; i < sizeof(authd_reload_handlers); handler = authd_reload_handlers[i++])
|
||||||
|
handler(parv[1][0]);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -303,7 +303,7 @@ void
|
||||||
reload_nameservers(void)
|
reload_nameservers(void)
|
||||||
{
|
{
|
||||||
check_authd();
|
check_authd();
|
||||||
rb_helper_write(authd_helper, "H D");
|
rb_helper_write(authd_helper, "R D");
|
||||||
(void)get_nameservers(stats_results_callback, NULL);
|
(void)get_nameservers(stats_results_callback, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue