提交 68590993 编写于 作者: T Tom Lane

Improve error message when startup or shutdown proc fails.

上级 f6abf4e8
......@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.206 2001/02/10 02:31:26 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.207 2001/02/11 23:12:28 tgl Exp $
*
* NOTES
*
......@@ -1557,7 +1557,8 @@ reaper(SIGNAL_ARGS)
abort();
if (exitstatus != 0)
{
fprintf(stderr, "Shutdown failed - abort\n");
fprintf(stderr, "%s: Shutdown proc %d exited with status %d\n",
progname, pid, exitstatus);
fflush(stderr);
ExitPostmaster(1);
}
......@@ -1569,7 +1570,8 @@ reaper(SIGNAL_ARGS)
abort();
if (exitstatus != 0)
{
fprintf(stderr, "Startup failed - abort\n");
fprintf(stderr, "%s: Startup proc %d exited with status %d - abort\n",
progname, pid, exitstatus);
fflush(stderr);
ExitPostmaster(1);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册