Re: [EXIM] Dial Up SMTP

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: Paul Slootman
Cc: Exim users mailing list
Asunto: Re: [EXIM] Dial Up SMTP
On Fri, 11 Sep 1998, Paul Slootman wrote:

> I don't like this type of thing, as there is a race condition between
> replacing the old config with the new. If exim happens to want to read
> the file just when it's being replaced, Bad Things might happen.
>
> An alternative would be an #include type of mechanism for the config
> file. I just had a quick look, but couldn't find anything like that.
> The config file could then include a (one-liner) file that either says
> "queue_whatever" or not, depending on the connection state.


... but then you have a race condition on the included file, don't you?

Actually, it is my understanding of Unix that you don't have a race
condition, because the file is replaced by renaming (using mv rather
than cp). Exim will read either the old file or the new file.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.



--
*** Exim information can be found at http://www.exim.org/ ***