supposed to (doh!) and fix some things to help with restarts.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85654
13f79535-47bb-0310-9956-
ffa450edef68
}
resume_thread(tid);
- ap_child_table[slot].pid = getpid();
+ ap_child_table[slot].pid = tid;
ap_child_table[slot].status = SERVER_ALIVE;
return 0;
}
ap_restart_time = time(NULL);
}
+ /* just before we go, tidy up the locks we've created to prevent a
+ * potential leak of semaphores... */
+ ap_destroy_lock(worker_thread_count_mutex);
+ ap_destroy_lock(accept_mutex);
+
return 0;
}
void reinit_scoreboard(ap_pool_t *p)
{
- ap_assert(!ap_scoreboard_image);
- ap_scoreboard_image = (scoreboard *) malloc(SCOREBOARD_SIZE);
+ if (!ap_scoreboard_image)
+ ap_scoreboard_image = (scoreboard *) malloc(SCOREBOARD_SIZE);
if (ap_scoreboard_image == NULL) {
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL,
"Ouch! Out of memory reiniting scoreboard!");