Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 76c7d2a

Browse files
committed
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?
1 parent a9fa525 commit 76c7d2a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/port/exec.c

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/port/exec.c,v 1.52 2007/01/28 06:32:02 tgl Exp $
12+
* $PostgreSQL: pgsql/src/port/exec.c,v 1.53 2007/01/28 07:29:32 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -587,10 +587,9 @@ pclose_check(FILE *stream)
587587
log_error(_("child process was terminated by exception 0x%X"),
588588
WTERMSIG(exitstatus));
589589
#elif defined(HAVE_DECL_SYS_SIGLIST) && HAVE_DECL_SYS_SIGLIST
590-
log_error(_("child process was terminated by signal %s (%d)"),
590+
log_error(_("child process was terminated by signal %s"),
591591
WTERMSIG(exitstatus) < NSIG ?
592-
sys_siglist[WTERMSIG(exitstatus)] : "(unknown)",
593-
WTERMSIG(exitstatus));
592+
sys_siglist[WTERMSIG(exitstatus)] : "(unknown)");
594593
#else
595594
log_error(_("child process was terminated by signal %d"),
596595
WTERMSIG(exitstatus));

0 commit comments

Comments
 (0)