Skip to content

Commit 56d2385

Browse files
committed
Fix garbled process name on backend crash
The log message on backend crash used wrong variable, which could be uninitialized. Introduced in commit 28a520c. Reported-by: Alexander Lakhin Discussion: https://www.postgresql.org/message-id/451b0797-83b8-cdbc-727f-8d7a7b0e3bca@gmail.com
1 parent bd06cc3 commit 56d2385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2612,7 +2612,7 @@ CleanupBackend(Backend *bp,
26122612

26132613
if (crashed)
26142614
{
2615-
HandleChildCrash(bp->pid, exitstatus, namebuf);
2615+
HandleChildCrash(bp->pid, exitstatus, procname);
26162616
pfree(bp);
26172617
return;
26182618
}

0 commit comments

Comments
 (0)