mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-24 23: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);
|
PQfinish(myLocalConn);
|
||||||
myLocalConn = establishDBConnection(local_options.conninfo, true);
|
myLocalConn = establishDBConnection(local_options.conninfo, true);
|
||||||
primaryConn = myLocalConn;
|
primaryConn = myLocalConn;
|
||||||
|
|
||||||
|
if (*local_options.logfile)
|
||||||
|
{
|
||||||
|
freopen(local_options.logfile, "a", stderr);
|
||||||
|
}
|
||||||
|
|
||||||
update_registration();
|
update_registration();
|
||||||
}
|
}
|
||||||
got_SIGHUP = false;
|
got_SIGHUP = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user