Re: file locking behaviour

2007-10-09 Thread Corinna Vinschen
On Oct 8 23:37, Damjan Lango wrote: > Hello! > > I have a program that uses: > > lock.l_type = F_WRLCK; > fcntl(log->handle, F_SETLK, &lock) > > the file is then locked also for reads, is that correct behaviour? > I thought that only writing would be locked. > on unix the file stays readable ev

file locking behaviour

2007-10-08 Thread Damjan Lango
Hello! I have a program that uses: lock.l_type = F_WRLCK; fcntl(log->handle, F_SETLK, &lock) the file is then locked also for reads, is that correct behaviour? I thought that only writing would be locked. on unix the file stays readable even if using the above code. -- Unsubscribe info: ht