Re: g_file_write()

On Mon, 2005-03-07 at 00:21 +0100, Soeren Sandmann wrote:
> I think it makes sense to do the atomic write. Here is a new patch
> that does that. It also uses the g_* versions where appropriate and
> hopefully doesn't leak.

On UNIX anyway I don't think you need the unlink(), rename() will
overwrite (and be atomic, so you never lose the orig file without
copying in the new one)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]