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

Commit 556e721

Browse files
committed
Return proper error exit code on pg_ctl -w start failure.
1 parent ca4736a commit 556e721

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bin/pg_ctl/pg_ctl.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
66
*
7-
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.49 2004/12/06 01:09:20 neilc Exp $
7+
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.50 2004/12/21 17:38:01 momjian Exp $
88
*
99
*-------------------------------------------------------------------------
1010
*/
@@ -582,7 +582,10 @@ do_start(void)
582582
print_msg(_("waiting for postmaster to start..."));
583583

584584
if (test_postmaster_connection() == false)
585+
{
585586
printf(_("could not start postmaster\n"));
587+
exit(1);
588+
}
586589
else
587590
{
588591
print_msg(_(" done\n"));

0 commit comments

Comments
 (0)