Skip to content

Commit 5e38665

Browse files
committed
Update make_mkid
1 parent a37ab1d commit 5e38665

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.169 2000/10/08 09:25:36 ishii Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.170 2000/10/11 17:55:32 momjian Exp $
1515
*
1616
* NOTES
1717
*
@@ -543,6 +543,22 @@ PostmasterMain(int argc, char *argv[])
543543
exit(1);
544544
}
545545

546+
/*
547+
* Select default values for switches where needed
548+
*/
549+
if (HostName == NULL)
550+
{
551+
if (!(HostName = getenv("PGHOST")))
552+
{
553+
HostName = "any";
554+
}
555+
}
556+
else if (!NetServer)
557+
{
558+
fprintf(stderr, "%s: -h requires -i.\n", progname);
559+
exit(1);
560+
}
561+
546562
/*
547563
* Check for invalid combinations of switches
548564
*/

src/backend/utils/misc/guc.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Support for grand unified configuration scheme, including SET
55
* command, configuration file, and command line options.
66
*
7-
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.12 2000/10/08 09:25:37 ishii Exp $
7+
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.13 2000/10/11 17:55:32 momjian Exp $
88
*
99
* Copyright 2000 by PostgreSQL Global Development Group
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
@@ -237,6 +237,8 @@ ConfigureNamesInt[] =
237237
DEF_NBUFFERS, 16, INT_MAX},
238238
{"port", PGC_POSTMASTER, &PostPortName,
239239
DEF_PGPORT, 1, 65535},
240+
{"unixsocket", PGC_POSTMASTER, &UnixSocketName,
241+
DEF_PGSOCKETFILE, 1, 65535},
240242

241243
{"sort_mem", PGC_USERSET, &SortMem,
242244
512, 1, INT_MAX},
@@ -372,7 +374,10 @@ ResetAllOptions(void)
372374
}
373375

374376
if (getenv("PGPORT"))
375-
PostPortName = atoi(getenv("PGPORT"));
377+
PostPortNumber = atoi(getenv("PGPORT"));
378+
379+
if (UnixSocketName == NULL)
380+
UnixSocketName = getenv("PGUNIXSOCKET");
376381
}
377382

378383

src/tools/make_mkid

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/sh
2-
find `pwd`/ \( -name _deadcode -a -prune \) -o \
3-
-type f -name '*.[chyl]' -print|sed 's;//;/;g' | mkid -
2+
#set -x
3+
4+
mkid `find \`pwd\`/ \( -name _deadcode -a -prune \) -o \
5+
-type f -name '*.[chyl]' -print|sed 's;//;/;g'`
46

57
find . -name 'CVS' -prune -o -type d -print |while read DIR
68
do

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy