diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-10-19 18:19:41 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-10-19 18:19:41 +0000 |
commit | 861a679fc131a7c75d3ac7a23728f02ff1c8ec03 (patch) | |
tree | c87d491ee9905b4278dbf01afe76ed51000651d6 /src/backend/tcop/postgres.c | |
parent | 6430e6e2831dc35a6e45bf09baac8c0c212d71d7 (diff) | |
download | postgresql-861a679fc131a7c75d3ac7a23728f02ff1c8ec03.tar.gz postgresql-861a679fc131a7c75d3ac7a23728f02ff1c8ec03.zip |
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.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 6 |
1 files changed, 2 insertions, 4 deletions
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"); } /* |