summaryrefslogtreecommitdiff
path: root/src/backend/postmaster
diff options
context:
space:
mode:
authorBruce Momjian2004-05-12 13:38:49 +0000
committerBruce Momjian2004-05-12 13:38:49 +0000
commitb1ffacddfc2f558ad150d05a79318b7e58c572b2 (patch)
tree36ceb14a37eab41f2eecb6ddf9b0d10b9f5e355b /src/backend/postmaster
parent3bfd4d9284877980fc3c452704bf9c650f1f731a (diff)
Rename find_my_binary/find_other_binary to
find_my_exec/find_other_exec(). Remove passing of progname to these functions as they can find that out from argv[0], which they already have. Make get_progname return const char *, and update all progname variables to be const char *.
Diffstat (limited to 'src/backend/postmaster')
-rw-r--r--src/backend/postmaster/postmaster.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index d2c71041744..bd183739204 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.384 2004/05/12 03:48:42 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.385 2004/05/12 13:38:39 momjian Exp $
*
* NOTES
*
@@ -172,7 +172,7 @@ int MaxBackends;
int ReservedBackends;
-static char *progname = NULL;
+static const char *progname = NULL;
/* The socket(s) we're listening to. */
#define MAXLISTEN 10
@@ -412,7 +412,7 @@ PostmasterMain(int argc, char *argv[])
*original_extraoptions = '\0';
- progname = argv[0];
+ progname = get_progname(argv[0]);
IsPostmasterEnvironment = true;
@@ -692,7 +692,7 @@ PostmasterMain(int argc, char *argv[])
/*
* On some systems our dynloader code needs the executable's pathname.
*/
- if (find_my_binary(pg_pathname, argv[0], "postgres") < 0)
+ if (find_my_exec(pg_pathname, argv[0]) < 0)
ereport(FATAL,
(errmsg("%s: could not locate postgres executable",
progname)));
@@ -3222,7 +3222,7 @@ CreateOptsFile(int argc, char *argv[])
FILE *fp;
int i;
- if (find_my_binary(fullprogname, argv[0], "postmaster") < 0)
+ if (find_my_exec(fullprogname, argv[0]) < 0)
{
elog(LOG, "could not locate postmaster");
return false;