[BUG] incorrect macro ngx_log_alloc_log
Manlio Perillo
manlio_perillo at libero.it
Tue Mar 18 22:27:48 MSK 2008
Igor Sysoev ha scritto:
> On Mon, Mar 17, 2008 at 11:25:53PM +0100, Manlio Perillo wrote:
>
>> The macro in core/ngx_log.h is not correct:
>>
>> #define ngx_log_alloc_log(pool, log) ngx_palloc(pool, log,
>> sizeof(ngx_log_t))
>>
>>
>> ngx_palloc only requires two arguments.
>>
>>
>> This function is never used, but I was trying to use it in mod_wsgi!
>
> Please, do not use it, I will remove this ancient artifact.
>
Ok, thanks.
By the way, I use it to make a copy of ngx_cycle->log, since I need to
modify the log->connection attribute.
Manlio Perillo
More information about the nginx
mailing list