Preventing temporary files?

Werner Koch wk at gnupg.org
Fri Mar 11 13:34:34 CET 2005


On Thu, 10 Mar 2005 20:16:15 -0600, Doug Barton said:

> lock file. The main reason this was a better solution is that (as I
> understand it) directory creation is specified by POSIX to be an
> atomic operation, and therefore isn't susceptible to race or locking

NFS does not try to optimimize directory creation as it seems to do
with the (atomic) link call.  If someone has real problems (i.e. data
corruption) with the current approach we may start to think about
using mkdir for locking.

Eventually we will use a dedicated process to access the keyring and
thus avoid the need for locking at all.


Shalom-Salam,

   Werner





More information about the Gnupg-users mailing list