Re: mcedit file locking

2003-03-25 Thread Oswald Buddenhagen
On Tue, Mar 25, 2003 at 01:59:12AM -0500, Pavel Roskin wrote: 3) System-wide locks using fcntl() or (if not supported) flock(). i'd go with that one. Pro: No stale locks. Works in non-writable directories. Locking between users. and it's simple (except the #ifdef for fcntl vs. flock). the

Re: mcedit file locking

2003-03-24 Thread Adam Byrtek / alpha
On Mon, Mar 24, 2003 at 06:02:16PM -0500, Pavel Roskin wrote: What do you think is the best way to implement file locking in mc editor? I want to work on this issue, but first I want to consult you, because you know many of the portability secrets :) Why do you think we need file locking in

Re: mcedit file locking

2003-03-24 Thread Pavel Roskin
Hello, Adam! Why do you think we need file locking in the editor? It's not an often requested feature. What kind of scenarios do you want to prevent? Do we need write locks or read locks? This question still needs to be answered. I just wanted to start work on the following TODO item: