Skip to content

Commit 9ab1872

Browse files
committed
Have pg_resetxlog -n return zero exit status.
1 parent 8ae5316 commit 9ab1872

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

contrib/pg_resetxlog/pg_resetxlog.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
2424
* Portions Copyright (c) 1994, Regents of the University of California
2525
*
26-
* $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/pg_resetxlog.c,v 1.14 2002/01/10 23:40:58 momjian Exp $
26+
* $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/pg_resetxlog.c,v 1.15 2002/01/10 23:46:13 momjian Exp $
2727
*
2828
*-------------------------------------------------------------------------
2929
*/
@@ -585,8 +585,12 @@ main(int argc, char **argv)
585585
{
586586
PrintControlValues(guessed);
587587
if (!noupdate)
588+
{
588589
printf("\nIf these values seem acceptable, use -f to force reset.\n");
589-
exit(1);
590+
exit(1);
591+
}
592+
else
593+
exit(0);
590594
}
591595

592596
/*

0 commit comments

Comments
 (0)