SetProcessGlobalVariables(type);
+ ereport(LOG,
+ (errmsg("process started")));
+
/* call child main */
POOL_SETMASK(&UnBlockSig);
health_check_timer_expired = 0;
bool restart_child = true;
bool found = false;
char *exiting_process_name = process_name_from_pid(pid);
+ bool process_health_check = false;
/*
* Check if the terminating child wants pgpool main to go down with it
/* Check health check process */
if (found == false)
{
+ process_health_check = true;
+
for (i = 0; i < NUM_BACKENDS; i++)
{
if (pid == health_check_pids[i])
}
else
{
- /* And the child was not restarted */
- ereport(LOG,
- (errmsg("%s process with pid: %d exited with success and will not be restarted", exiting_process_name, pid)));
+ if (process_health_check == false)
+ {
+ /* And the child was not restarted */
+ ereport(LOG,
+ (errmsg("%s process with pid: %d exited with success and will not be restarted", exiting_process_name, pid)));
+ }
}
}