mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 05:56:21 +00:00
@@ -2329,6 +2329,7 @@ wait_event_main(Datum main_arg)
|
|||||||
BackgroundWorkerUnblockSignals();
|
BackgroundWorkerUnblockSignals();
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
sleep(1);
|
||||||
if (sigterm)
|
if (sigterm)
|
||||||
break;
|
break;
|
||||||
rc = WaitLatch(&MyProc->procLatch, WL_LATCH_SET | WL_TIMEOUT | WL_POSTMASTER_DEATH, 1, PG_WAIT_EXTENSION);
|
rc = WaitLatch(&MyProc->procLatch, WL_LATCH_SET | WL_TIMEOUT | WL_POSTMASTER_DEATH, 1, PG_WAIT_EXTENSION);
|
||||||
|
|||||||
Reference in New Issue
Block a user