Re: Exim 0.54 feature requests

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Chris Thompson
Fecha:  
A: ph10
Cc: exim-users
Asunto: Re: Exim 0.54 feature requests
Philip writes:

> > On an more trivial point, can the queue text area in eximon give some
> > feedback as to whether a message is currently being processed.
>
> Not easily. The only sure way to tell if a message is being processed is
> to open the spool file and try to lock it. (And getting the lock and
> immediately freeing it might still prevent Exim from starting to process
> the message.)


If you are using lockf(3)-type locking, then there is F_TEST [or F_GETLK if
you are working at the fcntl(2) level]. You could even pick out the pid of
the Exim process that has the file locked. Not that I am recommending this
approach...

Chris Thompson               Cambridge University Computing Service,
Email: cet1@???    New Museums Site, Cambridge CB2 3QG,
Phone: +44 1223 334715       United Kingdom.