13
13
*
14
14
*Copyright (c) 2001-2003, PostgreSQL Global Development Group
15
15
*
16
- *$PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.69 2004/05/13 22:45:02 momjian Exp $
16
+ *$PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.70 2004/05/18 03:36:30 momjian Exp $
17
17
* ----------
18
18
*/
19
19
#include "postgres.h"
@@ -487,7 +487,7 @@ pgstat_forkexec(STATS_PROCESS_TYPE procType)
487
487
/* + the pstat file names, and postgres pathname */
488
488
snprintf (pgstatBuf [bufc ++ ],MAXPGPATH ,"\"%s\"" ,pgStat_tmpfname );
489
489
snprintf (pgstatBuf [bufc ++ ],MAXPGPATH ,"\"%s\"" ,pgStat_fname );
490
- snprintf (pgstatBuf [bufc ++ ],MAXPGPATH ,"\"%s\"" ,my_exec_path ); /* used? */
490
+ snprintf (pgstatBuf [bufc ++ ],MAXPGPATH ,"\"%s\"" ,postgres_exec_path );
491
491
snprintf (pgstatBuf [bufc ++ ],MAXPGPATH ,"\"%s\"" ,DataDir );
492
492
493
493
/* Add to the arg list */
@@ -500,9 +500,9 @@ pgstat_forkexec(STATS_PROCESS_TYPE procType)
500
500
501
501
/* Fire off execv in child */
502
502
#ifdef WIN32
503
- pid = win32_forkexec (my_exec_path ,av );
503
+ pid = win32_forkexec (postgres_exec_path ,av );
504
504
#else
505
- if ((pid = fork ())== 0 && (execv (my_exec_path ,av )== -1 ))
505
+ if ((pid = fork ())== 0 && (execv (postgres_exec_path ,av )== -1 ))
506
506
/* FIXME: [fork/exec] suggestions for what to do here? Can't call elog... */
507
507
abort ();
508
508
#endif
@@ -532,7 +532,7 @@ pgstat_parseArgs(PGSTAT_FORK_ARGS)
532
532
MaxBackends = atoi (argv [argc ++ ]);
533
533
StrNCpy (pgStat_tmpfname ,argv [argc ++ ],MAXPGPATH );
534
534
StrNCpy (pgStat_fname ,argv [argc ++ ],MAXPGPATH );
535
- StrNCpy (my_exec_path ,argv [argc ++ ],MAXPGPATH );
535
+ StrNCpy (postgres_exec_path ,argv [argc ++ ],MAXPGPATH );
536
536
DataDir = strdup (argv [argc ++ ]);
537
537
538
538
read_nondefault_variables ();