Le Fri, 13 Apr 2007 08:39:10 +0200, Alain Frisch a écrit : > Looking at the code very: spamoracle write its database to a fresh > temporary file and then rename it. With a local file system (not NFS) > under Unix, this is atomic. It is thus safe to "mark" and "add" in > parallel, but if you do several "add" in parallel, you'll not get the > expected behavior (but the database will not be corrupted). (I'm not an Unix guru so this might be a silly question) What about the following scenario : 1) "spamoracle add" reads the database, updates it and writes it to a fresh file 2) "spamoracle read" begins to read the database from file 3) "spamoracle add" renames the file 4) "spamoracle read" finishes to read the database from file and closes the file (which no longer exists ?) Is it safe ? I guess it's only changing the i-nodes but does it influence "spamoracle read" in any way ? Regards, -- Gabriel Kerneis