Russell Nelson <[EMAIL PROTECTED]> writes:
> Yup. Basically, the algorithm is "prepare the file in a tmp/
> directory using a name built from the Unix timestamp, the process id,
> and the hostname. When it's ready, fsync it, and rename it into the
> new/ directory."
Though this may only work (presuming you're depending on the rename to
be atomic) if you can guarantee that the two directories are on the
same filesystem. If we were going to do this from scratch, you could
also just use a naming convention, i.e. somename.tmp gets renamed as
somename.new when it's ready.
Though this may be being a bit too defensive.
--
Rob Browning <[EMAIL PROTECTED]> PGP=E80E0D04F521A094 532B97F5D64E3930
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]