Make afs also reload the config file and reopen its log file. The old
code did not honor for example loglevel changes.
st->signum = para_next_signal();
if (st->signum == SIGHUP) {
close_afs_tables();
+ parse_config_or_die(1);
t->error = open_afs_tables();
if (t->error < 0)
return;
exit(EXIT_FAILURE);
}
-static void parse_config_or_die(int override)
+void parse_config_or_die(int override)
{
char *home = para_homedir();
struct stat statbuf;
int ret;
char *cf;
+ close_log(logfile);
+ logfile = NULL;
if (conf.config_file_given)
cf = para_strdup(conf.config_file_arg);
else
static void handle_sighup(void)
{
PARA_NOTICE_LOG("SIGHUP\n");
- close_log(logfile); /* gets reopened if necessary by parse_config */
- logfile = NULL;
parse_config_or_die(1); /* reopens log */
init_user_list(user_list_file); /* reload user list */
if (mmd->afs_pid)
extern struct server_args_info conf;
__noreturn void handle_connect(int fd, const char *peername);
+void parse_config_or_die(int override);