Re: exim can hold mainlog files open for a long time .....

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Piete Brooks
Fecha:  
A: Philip Hazel
Cc: exim-users
Asunto: Re: exim can hold mainlog files open for a long time .....
>> How about a configed variable max_log_open, and have the log proc do a
>>    if    (time() > log_expire_time)
>>    then    attempt re-open
>>        log_expire_time = time() + max_log_open
>> before each write ?
> Could do, but it doesn't really do what you want.


Why not ?

> If it takes several hours to deliver to one address (which is plausible)


"Plauseible" ??

> then the log would remain open all that time if it had already been opened
> for a previous address.


yes -- not a problem.

My concern is not having it *open*, my concern is having it *written to* after
the file has been "mv"ed / processed / deleted.

A simple stat() would show that the inode number of the file hasn't changed.