Commit 68590993 authored by Tom Lane's avatar Tom Lane

Improve error message when startup or shutdown proc fails.

parent f6abf4e8
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* *
* *
* IDENTIFICATION * 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 * NOTES
* *
...@@ -1557,7 +1557,8 @@ reaper(SIGNAL_ARGS) ...@@ -1557,7 +1557,8 @@ reaper(SIGNAL_ARGS)
abort(); abort();
if (exitstatus != 0) 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); fflush(stderr);
ExitPostmaster(1); ExitPostmaster(1);
} }
...@@ -1569,7 +1570,8 @@ reaper(SIGNAL_ARGS) ...@@ -1569,7 +1570,8 @@ reaper(SIGNAL_ARGS)
abort(); abort();
if (exitstatus != 0) 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); fflush(stderr);
ExitPostmaster(1); ExitPostmaster(1);
} }
......
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