Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit556e721

Browse files
committed
Return proper error exit code on pg_ctl -w start failure.
1 parentca4736a commit556e721

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)

[8]ページ先頭

©2009-2025 Movatter.jp