mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
new config option, stdout/stdin closed
Now stdin and stdout get closed. Additionally stderr gets closed and reopened to the new config option „logfile“ if specified
This commit is contained in:
2
config.c
2
config.c
@@ -120,6 +120,8 @@ parse_config(const char *config_file, t_configuration_options *options)
|
||||
strncpy (options->pg_bindir, value, MAXLEN);
|
||||
else if (strcmp(name, "pg_ctl_options") == 0)
|
||||
strncpy (options->pgctl_options, value, MAXLEN);
|
||||
else if (strcmp(name, "logfile") == 0)
|
||||
strncpy(options->logfile, value, MAXLEN);
|
||||
else
|
||||
log_warning(_("%s/%s: Unknown name/value pair!\n"), name, value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user