From 9ab1872ef47e5cb5205808c2324ca05705af537c Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 10 Jan 2002 23:46:13 +0000 Subject: [PATCH] Have pg_resetxlog -n return zero exit status. --- contrib/pg_resetxlog/pg_resetxlog.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/contrib/pg_resetxlog/pg_resetxlog.c b/contrib/pg_resetxlog/pg_resetxlog.c index 1be5fb79bd..5fde41f7c8 100644 --- a/contrib/pg_resetxlog/pg_resetxlog.c +++ b/contrib/pg_resetxlog/pg_resetxlog.c @@ -23,7 +23,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/pg_resetxlog.c,v 1.14 2002/01/10 23:40:58 momjian Exp $ + * $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/pg_resetxlog.c,v 1.15 2002/01/10 23:46:13 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -585,8 +585,12 @@ main(int argc, char **argv) { PrintControlValues(guessed); if (!noupdate) + { printf("\nIf these values seem acceptable, use -f to force reset.\n"); - exit(1); + exit(1); + } + else + exit(0); } /* -- 2.40.0