Commit 556e7212 authored by Bruce Momjian's avatar Bruce Momjian

Return proper error exit code on pg_ctl -w start failure.

parent ca4736ab
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* *
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* *
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.49 2004/12/06 01:09:20 neilc Exp $ * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.50 2004/12/21 17:38:01 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -582,7 +582,10 @@ do_start(void) ...@@ -582,7 +582,10 @@ do_start(void)
print_msg(_("waiting for postmaster to start...")); print_msg(_("waiting for postmaster to start..."));
if (test_postmaster_connection() == false) if (test_postmaster_connection() == false)
{
printf(_("could not start postmaster\n")); printf(_("could not start postmaster\n"));
exit(1);
}
else else
{ {
print_msg(_(" done\n")); print_msg(_(" done\n"));
......
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