mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-17 19:30:00 +08: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:
parent
bd06cc338d
commit
56d23855c8
@ -2612,7 +2612,7 @@ CleanupBackend(Backend *bp,
|
||||
|
||||
if (crashed)
|
||||
{
|
||||
HandleChildCrash(bp->pid, exitstatus, namebuf);
|
||||
HandleChildCrash(bp->pid, exitstatus, procname);
|
||||
pfree(bp);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user