mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
fix: reopen log file on SIGHUP
This commit is contained in:
@@ -382,6 +382,12 @@ main(int argc, char **argv)
|
||||
PQfinish(myLocalConn);
|
||||
myLocalConn = establishDBConnection(local_options.conninfo, true);
|
||||
primaryConn = myLocalConn;
|
||||
|
||||
if (*local_options.logfile)
|
||||
{
|
||||
freopen(local_options.logfile, "a", stderr);
|
||||
}
|
||||
|
||||
update_registration();
|
||||
}
|
||||
got_SIGHUP = false;
|
||||
|
||||
Reference in New Issue
Block a user