aboutsummaryrefslogtreecommitdiff
path: root/src/backend/postmaster/pgstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/postmaster/pgstat.c')
-rw-r--r--src/backend/postmaster/pgstat.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c
index 15002dcd9d1..01273e19340 100644
--- a/src/backend/postmaster/pgstat.c
+++ b/src/backend/postmaster/pgstat.c
@@ -51,7 +51,6 @@
#include "storage/ipc.h"
#include "storage/latch.h"
#include "storage/pg_shmem.h"
-#include "storage/pmsignal.h"
#include "storage/procsignal.h"
#include "utils/ascii.h"
#include "utils/guc.h"
@@ -3227,11 +3226,9 @@ PgstatCollectorMain(int argc, char *argv[])
/*
* Emergency bailout if postmaster has died. This is to avoid the
- * necessity for manual cleanup of all postmaster children. Note
- * that we mustn't trust the WL_POSTMASTER_DEATH result flag entirely;
- * if it is set, recheck with PostmasterIsAlive before believing it.
+ * necessity for manual cleanup of all postmaster children.
*/
- if ((wr & WL_POSTMASTER_DEATH) && !PostmasterIsAlive())
+ if (wr & WL_POSTMASTER_DEATH)
break;
} /* end of outer loop */