httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject Re: svn commit: r106902 - /httpd/httpd/trunk/modules/proxy/proxy_util.c
Date Mon, 29 Nov 2004 10:49:18 GMT
On 29 Nov 2004 10:43:30 -0000, mturk@apache.org <mturk@apache.org> wrote:
> Author: mturk
> Date: Mon Nov 29 02:43:28 2004
> New Revision: 106902
...
>                         Also log the child pid so that logging
> makes sense.
...
> --- httpd/httpd/trunk/modules/proxy/proxy_util.c        (original)
> +++ httpd/httpd/trunk/modules/proxy/proxy_util.c        Mon Nov 29 02:43:28 2004
...
>          ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s,
> -                     "proxy: initialized worker %d for (%s) min=%d max=%d smax=%d",
> -             worker->id, worker->hostname, worker->min, worker->hmax, worker->smax);
> +            "proxy: initialized worker %d in child %d for (%s) min=%d max=%d smax=%d",
> +             worker->id, getpid(), worker->hostname, worker->min,
> +             worker->hmax, worker->smax);

need to use 
"%" APR_PID_T_FMT 
instead of
%d
for the getpid(); pid_t varies between int and long depending on platform

(two places in new code)

Mime
View raw message