Re: use lockfiles
Joe Orton <[email protected]> Sat, 13 Aug 2005 23:52:28 +0100
| Newsgroups | gmane.comp.web.sitecopy |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Aug 11, 2005 at 07:21:33AM +0800, Dan Jacobson wrote: > Ah, I had already had a sitecopy running in the background. No wonder. > > Therefore, sitecopy should employ lockfiles or something, if it > doesn't already. (I was using 0.11.4). Recent versions don't either. The proper fix for this is for sitecopy to open a new state file exclusively (O_EXCL) as ~/.sitecopy/local.new (or something) then rename over the old file afer an update; concurrent runs will be prevented. This needs a little refactoring. joe _______________________________________________ sitecopy maillist - [email protected] http://dav.lyra.org/mailman/listinfo/sitecopy