Re: [Exim] Logging from embedded perl

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Matthias Waffenschmidt
CC: exim-users
Betreff: Re: [Exim] Logging from embedded perl
On Wed, 3 Sep 2003, Matthias Waffenschmidt wrote:

> Simply concatenating to the exim log file is potentially dangerous or
> at least may result in mixed up log entries.


It is not dangerous. That is exactly the way Exim processes operate.
They open the log file for APPEND, and ensure that each entry is written
in single write() operation. The operating system does the rest. It's a
neat feature of Un*x file systems.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book