Content-Length: 275344 | pFad | http://github.com/postgrespro/postgres/commit/5a4f7638419bb358a0bb82e5c0921a9ea9aa40b9

C2 Small correction to previous patch: we shouldn't ReleasePostmasterChi… · postgrespro/postgres@5a4f763 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/5a4f7638419bb358a0bb82e5c0921a9ea9aa40b9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy