On Thu, 2003-01-09 at 07:47, J�r�me Bolliet wrote:
> Brian Candler wrote:
> > 3. It then writes the updated cache to a temporary file and then does an
> >    atomic rename to 'courierpop3dsizelist'. At all instants the file is
> >    complete and valid. There is no need to lock the file. There is no
> >    race condition.
>
> To move the temporary file, you need to delete the current
> courierpop3dsizelist before.
> In this case, what is happen if another pop3d process try to access
> between the delete and the move.

He said it was an "atomic rename".  There is no delete and move, the new
file just gets renamed over the old file, and the old file is lost when
no processes have it open.




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to