/*--------------------------------------------------------------------------*/
/* */
/* Main watchdog worker thread. */
-/* For singleton workers child thread theat first obtains the process */
+/* For singleton workers child thread that first obtains the process */
/* mutex is running. Threads in other child's are locked on mutex. */
/* */
/*--------------------------------------------------------------------------*/
if (w->is_running) {
watchdog_list_t *wl = w->callbacks;
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, wd_server_conf->s,
- "%sWatchdog (%s) running (%d)",
+ "%sWatchdog (%s) running (%" APR_PID_T_FMT ")",
w->singleton ? "Singleton" : "",
- w->name, getpid());
+ w->name, (pid_t)getpid());
apr_time_clock_hires(w->pool);
if (wl) {
apr_pool_t *ctx = NULL;
}
}
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, wd_server_conf->s,
- "%sWatchdog (%s) stopping (%d)",
+ "%sWatchdog (%s) stopping (%" APR_PID_T_FMT ")",
w->singleton ? "Singleton" : "",
- w->name, getpid());
+ w->name, (pid_t)getpid());
if (locked)
apr_proc_mutex_unlock(w->mutex);
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s,
"[%" APR_PID_T_FMT " - %s] "
"child second stage post config hook",
- getpid(), ppid);
+ (pid_t)getpid(), ppid);
return OK;
}
}