mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-24 07:36:30 +00:00
Refactor reload_config()
Remove any non-repmgrd specific items. parse_config() already sanity-checks the values so no need to recheck. Refactor parse_config() so when called by reload_config() it won't exit if errors are encountered.
This commit is contained in:
7
log.c
7
log.c
@@ -236,9 +236,10 @@ logger_init(t_configuration_options *opts, const char *ident)
|
||||
stderr_log_notice(_("Redirecting logging output to '%s'\n"), opts->logfile);
|
||||
fd = freopen(opts->logfile, "a", stderr);
|
||||
|
||||
/* It's possible freopen() may still fail due to e.g. a race condition;
|
||||
as it's not feasible to restore stderr after a failed freopen(),
|
||||
we'll write to stdout as a last resort.
|
||||
/*
|
||||
* It's possible freopen() may still fail due to e.g. a race condition;
|
||||
* as it's not feasible to restore stderr after a failed freopen(),
|
||||
* we'll write to stdout as a last resort.
|
||||
*/
|
||||
if (fd == NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user