ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, ap_server_conf,
"caught SIGTERM, shutting down");
- DBPRINT0 ("Shutdown pending. Waiting for threads to terminate...\n");
- while (worker_thread_count > 0)
+ while (worker_thread_count > 0) {
+ printf ("\rShutdown pending. Waiting for %d thread(s) to terminate...",
+ worker_thread_count);
apr_thread_yield();
+ }
return 1;
}
"Graceful restart requested, doing restart");
/* Wait for all of the threads to terminate before initiating the restart */
- DBPRINT0 ("Restart pending. Waiting for threads to terminate...\n");
while (worker_thread_count > 0) {
+ printf ("Restart pending. Waiting for %d thread(s) to terminate...",
+ worker_thread_count);
apr_thread_yield();
}
DBPRINT0 ("restarting...\n");