From 868cf254ee2cd704f497e9ef7710a82320887824 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 24 Aug 2009 18:09:37 +0000 Subject: [PATCH] Small correction to previous patch: we shouldn't ReleasePostmasterChildSlot for a dead_end child, because we didn't AssignPostmasterChildSlot. --- src/backend/postmaster/postmaster.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index ff947a3b6f..8ada8308ec 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -3024,7 +3024,8 @@ BackendStartup(Port *port) /* in parent, fork failed */ int save_errno = errno; - (void) ReleasePostmasterChildSlot(bn->child_slot); + if (!bn->dead_end) + (void) ReleasePostmasterChildSlot(bn->child_slot); free(bn); errno = save_errno; ereport(LOG, -- 2.39.5