From: John Carter Date: 2006-08-15T06:52:32+09:00 Subject: Re: How do you use flock and clean up lock files? On Mon, 14 Aug 2006, Francis Cianfrocca wrote: > I have to say that in my opinion, none of the problems you're trying > to solve are particularly deep nor particularly new. I know, that's why I assumed there was a standard solution I was missing. Answer: Have a world writable standard clutter directory...and a standard security hole where malware can do nasty things to temp files and lock files. > On Windows, don't cry, just use CreateProcess. Windows has a strong > cross-process mutex, unlike Linux, so use it. It's heavyweight, but so > what? Nothing is heavier than a process, which is what you're trying > to sync in the first place. ri CreateProcess Nothing known about CreateProcess. Where do I start looking for that? John Carter Phone : (64)(3) 358 6639 Tait Electronics Fax : (64)(3) 359 4632 PO Box 1645 Christchurch Email : john.carter@tait.co.nz New Zealand Carter's Clarification of Murphy's Law. "Things only ever go right so that they may go more spectacularly wrong later." From this principle, all of life and physics may be deduced.