summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2009-08-24 18:09:37 +0000
committerTom Lane2009-08-24 18:09:37 +0000
commit868cf254ee2cd704f497e9ef7710a82320887824 (patch)
treed13a71241daa7be1dd308d3e5102ac57385060b9
parent05b6072e0aa105998dde376e5a0ede92f090e812 (diff)
Small correction to previous patch: we shouldn't ReleasePostmasterChildSlot
for a dead_end child, because we didn't AssignPostmasterChildSlot.
-rw-r--r--src/backend/postmaster/postmaster.c3
1 files changed, 2 insertions, 1 deletions
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,