pid_t pid;
ap_generation_t generation; /* generation of this child */
ap_scoreboard_e sb_type;
- unsigned short process_status; /* Either SB_WORKING or SB_IDLE_DIE */
- int worker_threads;
- worker_score *worker_head;
- process_score *next;
};
typedef struct {
apr_signal(SIGQUIT, SIG_DFL);
#endif
apr_signal(SIGTERM, just_die);
- ap_scoreboard_image->parent[slot].process_status = SB_WORKING;
child_main(slot);
}
* pod is used for signalling graceful restart.
*/
apr_signal(SIGWINCH, SIG_IGN);
- ap_scoreboard_image->parent[slot].process_status = SB_WORKING;
child_main(slot);
}
ap_scoreboard_image->global.running_generation = ap_my_generation;
update_scoreboard_global();
- for (index = 0; index < ap_daemons_limit; ++index) {
- ap_scoreboard_image->parent[index].process_status = SB_IDLE_DIE;
- }
-
if (is_graceful) {
ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_NOTICE, 0, ap_server_conf,
"Graceful restart requested, doing restart");
&& old_status == SERVER_STARTING) {
ws->thread_num = child_num * HARD_SERVER_LIMIT + thread_num;
ps->generation = ap_my_generation;
- ps->worker_threads = ap_threads_per_child;
}
if (ap_extended_status) {