From 861a679fc131a7c75d3ac7a23728f02ff1c8ec03 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 19 Oct 2001 18:19:41 +0000 Subject: Set optreset on platforms that have it before launching postmaster subprocesses; perhaps this will fix portability problem just noted by Lockhart. Also, move test for bad permissions of DataDir to a more logical place. --- src/backend/tcop/postgres.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/backend/tcop/postgres.c') diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 95d4b9e8c15..e2f86629335 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.236 2001/10/19 17:03:08 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.237 2001/10/19 18:19:41 tgl Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -1192,8 +1192,6 @@ PostgresMain(int argc, char *argv[], secure = true; ctx = PGC_POSTMASTER; - optind = 1; /* reset after postmaster's usage */ - while ((flag = getopt(argc, argv, "A:B:c:CD:d:Eef:FiNOPo:p:S:st:v:W:x:-:")) != EOF) switch (flag) { @@ -1651,7 +1649,7 @@ PostgresMain(int argc, char *argv[], if (!IsUnderPostmaster) { puts("\nPOSTGRES backend interactive interface "); - puts("$Revision: 1.236 $ $Date: 2001/10/19 17:03:08 $\n"); + puts("$Revision: 1.237 $ $Date: 2001/10/19 18:19:41 $\n"); } /* -- cgit v1.2.3