Skip to content

Commit 5a4f763

Browse files
committed
Small correction to previous patch: we shouldn't ReleasePostmasterChildSlot
for a dead_end child, because we didn't AssignPostmasterChildSlot.
1 parent 45f9b46 commit 5a4f763

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.588 2009/08/24 17:23:02 alvherre Exp $
40+
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.589 2009/08/24 18:09:37 tgl Exp $
4141
*
4242
* NOTES
4343
*
@@ -3024,7 +3024,8 @@ BackendStartup(Port *port)
30243024
/* in parent, fork failed */
30253025
int save_errno = errno;
30263026

3027-
(void) ReleasePostmasterChildSlot(bn->child_slot);
3027+
if (!bn->dead_end)
3028+
(void) ReleasePostmasterChildSlot(bn->child_slot);
30283029
free(bn);
30293030
errno = save_errno;
30303031
ereport(LOG,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy