1313 *
1414 * Copyright (c) 2001-2003, PostgreSQL Global Development Group
1515 *
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 $
1717 * ----------
1818 */
1919#include "postgres.h"
@@ -487,7 +487,7 @@ pgstat_forkexec(STATS_PROCESS_TYPE procType)
487487 /* + the pstat file names, and postgres pathname */
488488 snprintf (pgstatBuf [bufc ++ ],MAXPGPATH ,"\"%s\"" ,pgStat_tmpfname );
489489 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 );
491491 snprintf (pgstatBuf [bufc ++ ],MAXPGPATH ,"\"%s\"" ,DataDir );
492492
493493 /* Add to the arg list */
@@ -500,9 +500,9 @@ pgstat_forkexec(STATS_PROCESS_TYPE procType)
500500
501501 /* Fire off execv in child */
502502#ifdef WIN32
503- pid = win32_forkexec (my_exec_path , av );
503+ pid = win32_forkexec (postgres_exec_path , av );
504504#else
505- if ((pid = fork ()) == 0 && (execv (my_exec_path , av ) == -1 ))
505+ if ((pid = fork ()) == 0 && (execv (postgres_exec_path , av ) == -1 ))
506506 /* FIXME: [fork/exec] suggestions for what to do here? Can't call elog... */
507507 abort ();
508508#endif
@@ -532,7 +532,7 @@ pgstat_parseArgs(PGSTAT_FORK_ARGS)
532532 MaxBackends = atoi (argv [argc ++ ]);
533533 StrNCpy (pgStat_tmpfname ,argv [argc ++ ],MAXPGPATH );
534534 StrNCpy (pgStat_fname , argv [argc ++ ],MAXPGPATH );
535- StrNCpy (my_exec_path , argv [argc ++ ],MAXPGPATH );
535+ StrNCpy (postgres_exec_path , argv [argc ++ ],MAXPGPATH );
536536 DataDir = strdup (argv [argc ++ ]);
537537
538538 read_nondefault_variables ();
0 commit comments