1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-03 15:22:11 +03:00

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

This commit is contained in:
Bruce Momjian
2004-12-21 17:38:01 +00:00
parent ca4736ab92
commit 556e72124c

View File

@@ -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)
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"));