mirror of
https://github.com/postgres/postgres.git
synced 2025-06-04 00:02:37 -04: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…
x
Reference in New Issue
Block a user