diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-05-19 19:39:27 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-05-19 19:39:27 +0000 |
commit | 4056279958de209bfb5d0c18ef2ee943304c465a (patch) | |
tree | b92975ce3445b9edb6399d5febbbf4cc9a7721e6 /src/backend/tcop/postgres.c | |
parent | 9ee33107689a653e8984bb485de6f4271b3d8897 (diff) | |
download | postgresql-4056279958de209bfb5d0c18ef2ee943304c465a.tar.gz postgresql-4056279958de209bfb5d0c18ef2ee943304c465a.zip |
Only do find_my_exec if it doesn't come from the postmaster.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 3abbb46e0b7..d4d1cd94738 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.410 2004/05/19 18:58:44 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.411 2004/05/19 19:39:27 momjian Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -2185,7 +2185,7 @@ PostgresMain(int argc, char *argv[], const char *username) /* Set up reference point for stack depth checking */ stack_base_ptr = &stack_base; - if (find_my_exec(argv[0], my_exec_path) < 0) + if (my_exec_path[0] == '\0' && find_my_exec(argv[0], my_exec_path) < 0) elog(FATAL, gettext("%s: could not locate my own executable path"), argv[0]); |