/* if it's been killed because of dynamic process management
* don't restart it automaticaly
*/
- if (child && child->idle_kill && WTERMSIG(status) == SIGTERM) {
+ if (child && child->idle_kill && WTERMSIG(status) == SIGQUIT) {
restart_child = 0;
}
case FPM_PCTL_CONT :
s = SIGCONT;
break;
+ case FPM_PCTL_QUIT :
+ s = SIGQUIT;
+ break;
default :
break;
}
if (idle > wp->config->pm_max_spare_servers && last_idle_child) {
last_idle_child->idle_kill = 1;
- fpm_pctl_kill(last_idle_child->pid, FPM_PCTL_TERM);
+ fpm_pctl_kill(last_idle_child->pid, FPM_PCTL_QUIT);
wp->idle_spawn_rate = 1;
continue;
}