mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Update process termination message to display signal number and name
from exec.c and postmaster.c.
This commit is contained in:
@ -37,7 +37,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.515 2007/01/28 06:32:03 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.516 2007/01/29 20:17:40 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
*
|
||||
@ -2436,11 +2436,10 @@ LogChildExit(int lev, const char *procname, int pid, int exitstatus)
|
||||
/*------
|
||||
translator: %s is a noun phrase describing a child process, such as
|
||||
"server process" */
|
||||
(errmsg("%s (PID %d) was terminated by signal %s (%d)",
|
||||
procname, pid,
|
||||
(errmsg("%s (PID %d) was terminated by signal %d: %s",
|
||||
procname, pid, WTERMSIG(exitstatus),
|
||||
WTERMSIG(exitstatus) < NSIG ?
|
||||
sys_siglist[WTERMSIG(exitstatus)] : "(unknown)",
|
||||
WTERMSIG(exitstatus))));
|
||||
sys_siglist[WTERMSIG(exitstatus)] : "(unknown)")));
|
||||
#else
|
||||
ereport(lev,
|
||||
|
||||
|
Reference in New Issue
Block a user