|
37 | 37 | *
|
38 | 38 | *
|
39 | 39 | * IDENTIFICATION
|
40 |
| - * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.384 2004/05/1203:48:42 momjian Exp $ |
| 40 | + * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.385 2004/05/1213:38:39 momjian Exp $ |
41 | 41 | *
|
42 | 42 | * NOTES
|
43 | 43 | *
|
@@ -172,7 +172,7 @@ intMaxBackends;
|
172 | 172 | intReservedBackends;
|
173 | 173 |
|
174 | 174 |
|
175 |
| -staticchar*progname=NULL; |
| 175 | +staticconstchar*progname=NULL; |
176 | 176 |
|
177 | 177 | /* The socket(s) we're listening to. */
|
178 | 178 | #defineMAXLISTEN10
|
@@ -412,7 +412,7 @@ PostmasterMain(int argc, char *argv[])
|
412 | 412 |
|
413 | 413 | *original_extraoptions='\0';
|
414 | 414 |
|
415 |
| -progname=argv[0]; |
| 415 | +progname=get_progname(argv[0]); |
416 | 416 |
|
417 | 417 | IsPostmasterEnvironment= true;
|
418 | 418 |
|
@@ -692,7 +692,7 @@ PostmasterMain(int argc, char *argv[])
|
692 | 692 | /*
|
693 | 693 | * On some systems our dynloader code needs the executable's pathname.
|
694 | 694 | */
|
695 |
| -if (find_my_binary(pg_pathname,argv[0],"postgres")<0) |
| 695 | +if (find_my_exec(pg_pathname,argv[0])<0) |
696 | 696 | ereport(FATAL,
|
697 | 697 | (errmsg("%s: could not locate postgres executable",
|
698 | 698 | progname)));
|
@@ -3222,7 +3222,7 @@ CreateOptsFile(int argc, char *argv[])
|
3222 | 3222 | FILE*fp;
|
3223 | 3223 | inti;
|
3224 | 3224 |
|
3225 |
| -if (find_my_binary(fullprogname,argv[0],"postmaster")<0) |
| 3225 | +if (find_my_exec(fullprogname,argv[0])<0) |
3226 | 3226 | {
|
3227 | 3227 | elog(LOG,"could not locate postmaster");
|
3228 | 3228 | return false;
|
|