mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Fix garbled process name on backend crash
The log message on backend crash used wrong variable, which could be
uninitialized. Introduced in commit 28a520c0b7
.
Reported-by: Alexander Lakhin
Discussion: https://www.postgresql.org/message-id/451b0797-83b8-cdbc-727f-8d7a7b0e3bca@gmail.com
This commit is contained in:
@ -2612,7 +2612,7 @@ CleanupBackend(Backend *bp,
|
|||||||
|
|
||||||
if (crashed)
|
if (crashed)
|
||||||
{
|
{
|
||||||
HandleChildCrash(bp->pid, exitstatus, namebuf);
|
HandleChildCrash(bp->pid, exitstatus, procname);
|
||||||
pfree(bp);
|
pfree(bp);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user