Re: Avoid changing/moving file that's currently being written.

Markus Hitter <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
Am 26.04.2010 um 00:16 schrieb Fabian Schuiki:

> It actually keeps several files synced, so when you change one of  
> the files it syncs the changes to the other one.

Well, you can ask for a lock on the file which should be denied in  
case another process has it open. See "man 2 open". Locks work on  
some network shares as well.


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.