Commit 76c7d2af authored by Tom Lane's avatar Tom Lane

Drat, can't fit an additional argument into log_error. Is it worth an

sprintf pushup to be sure we can report something useful for out-of-range
exitstatus?
parent a9fa5250
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/port/exec.c,v 1.52 2007/01/28 06:32:02 tgl Exp $ * $PostgreSQL: pgsql/src/port/exec.c,v 1.53 2007/01/28 07:29:32 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -587,10 +587,9 @@ pclose_check(FILE *stream) ...@@ -587,10 +587,9 @@ pclose_check(FILE *stream)
log_error(_("child process was terminated by exception 0x%X"), log_error(_("child process was terminated by exception 0x%X"),
WTERMSIG(exitstatus)); WTERMSIG(exitstatus));
#elif defined(HAVE_DECL_SYS_SIGLIST) && HAVE_DECL_SYS_SIGLIST #elif defined(HAVE_DECL_SYS_SIGLIST) && HAVE_DECL_SYS_SIGLIST
log_error(_("child process was terminated by signal %s (%d)"), log_error(_("child process was terminated by signal %s"),
WTERMSIG(exitstatus) < NSIG ? WTERMSIG(exitstatus) < NSIG ?
sys_siglist[WTERMSIG(exitstatus)] : "(unknown)", sys_siglist[WTERMSIG(exitstatus)] : "(unknown)");
WTERMSIG(exitstatus));
#else #else
log_error(_("child process was terminated by signal %d"), log_error(_("child process was terminated by signal %d"),
WTERMSIG(exitstatus)); WTERMSIG(exitstatus));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment