The --log-file option is supposed to be used to create a log file, but
until now, even if this isn't done, --reopen to the vlogconf program will
make it open one. This behavior was unexpected, hence this commit that
prevents it from happening.
Fixes bug #905.
int
vlog_reopen_log_file(void)
{
- return vlog_set_log_file(log_file_name);
+ return log_file_name ? vlog_set_log_file(log_file_name) : 0;
}
/* Set debugging levels: