extern char *get_application_name(void);
extern char *get_application_name_for_procees(ProcessType ptype);
-void SetProcessGlobalVaraibles(ProcessType pType);
+void SetProcessGlobalVariables(ProcessType pType);
extern volatile SI_ManageInfo *si_manage_info;
extern volatile sig_atomic_t sigusr2_received;
hba_file = make_absolute_path(hba_file_path, base_dir);
mypid = getpid();
- SetProcessGlobalVaraibles(PT_MAIN);
+ SetProcessGlobalVariables(PT_MAIN);
pool_init_config();
#endif
mypid = getpid();
- SetProcessGlobalVaraibles(PT_MAIN);
+ SetProcessGlobalVariables(PT_MAIN);
write_pid_file();
if (chdir("/"))
ereport(WARNING,
case 0:
on_exit_reset();
- SetProcessGlobalVaraibles(PT_LOGGER);
+ SetProcessGlobalVariables(PT_LOGGER);
/* do the work */
SysLoggerMain(0, NULL);
break;
if (pid == 0)
{
on_exit_reset();
- SetProcessGlobalVaraibles(PT_PCP);
+ SetProcessGlobalVariables(PT_PCP);
close(pipe_fds[0]);
close(pipe_fds[1]);
close(pipe_fds[1]);
}
- SetProcessGlobalVaraibles(PT_CHILD);
+ SetProcessGlobalVariables(PT_CHILD);
/* call child main */
POOL_SETMASK(&UnBlockSig);
close(pipe_fds[1]);
}
- SetProcessGlobalVaraibles(type);
+ SetProcessGlobalVariables(type);
ereport(LOG,
(errmsg("process started")));
}
#endif
- SetProcessGlobalVaraibles(PT_FOLLOWCHILD);
+ SetProcessGlobalVariables(PT_FOLLOWCHILD);
/*
* when the watchdog is enabled, we would come here
* only on the coordinator node.
return process_application_name;
}
-void SetProcessGlobalVaraibles(ProcessType pType)
+void SetProcessGlobalVariables(ProcessType pType)
{
processType = pType;
myProcPid = getpid();
if (pid == 0) /* child */
{
- SetProcessGlobalVaraibles(PT_PCP_WORKER);
+ SetProcessGlobalVariables(PT_PCP_WORKER);
on_exit_reset();
/* Close the listen sockets sockets */
{
on_exit_reset();
- SetProcessGlobalVaraibles(PT_WATCHDOG);
+ SetProcessGlobalVariables(PT_WATCHDOG);
/* call watchdog child main */
POOL_SETMASK(&UnBlockSig);
return pid;
}
on_exit_reset();
- SetProcessGlobalVaraibles(PT_WATCHDOG_UTILITY);
+ SetProcessGlobalVariables(PT_WATCHDOG_UTILITY);
POOL_SETMASK(&UnBlockSig);
return pid;
}
on_exit_reset();
- SetProcessGlobalVaraibles(PT_WATCHDOG_UTILITY);
+ SetProcessGlobalVariables(PT_WATCHDOG_UTILITY);
POOL_SETMASK(&UnBlockSig);
}
on_exit_reset();
- SetProcessGlobalVaraibles(PT_HB_RECEIVER);
+ SetProcessGlobalVariables(PT_HB_RECEIVER);
if (fork_wait_time > 0)
{
}
on_exit_reset();
- SetProcessGlobalVaraibles(PT_HB_SENDER);
+ SetProcessGlobalVariables(PT_HB_SENDER);
if (fork_wait_time > 0)
{
if (pid == 0)
{
on_exit_reset();
- SetProcessGlobalVaraibles(PT_WATCHDOG_UTILITY);
+ SetProcessGlobalVariables(PT_WATCHDOG_UTILITY);
close(STDOUT_FILENO);
dup2(pfd[1], STDOUT_FILENO);
close(pfd[0]);
if (pid == 0)
{
on_exit_reset();
- SetProcessGlobalVaraibles(PT_LIFECHECK);
+ SetProcessGlobalVariables(PT_LIFECHECK);
/* call lifecheck child main */
POOL_SETMASK(&UnBlockSig);
{
/* CHILD */
on_exit_reset();
- SetProcessGlobalVaraibles(PT_WATCHDOG_UTILITY);
+ SetProcessGlobalVariables(PT_WATCHDOG_UTILITY);
close(STDOUT_FILENO);
dup2(pfd[1], STDOUT_FILENO);