[exim-dev] [Bug 972] File Already Exists in Spool Directory

Top Page
Delete this message
Reply to this message
Author: Simon Arlott
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 972] File Already Exists in Spool Directory
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=972




--- Comment #4 from Simon Arlott <bugzilla.exim.simon@???> 2010-04-16 15:24:35 ---
http://exim.org/exim-html-current/doc/html/spec_html/ch03.html#SECTmessiden

If two messages are created in the same SMTP session they will have the same
PID. If the delay to ensure the clock ticks is not working correctly then the
problem you're having would occur.

The kernel version you're using may be relevant. I've seen Linux doing some
very odd things with specific delays (e.g. waiting until X.000000 will
consistently not wake up on the second, but X.999999 will).

As this is a local delivery if the delay function returned immediately it would
be possible to have two deliveries occur before the generated ID changed.

exim_wait_tick() should verify that the given time has passed (although there's
nothing that can be done if time goes backwards) and sleep some more if
necessary.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email