file locking behaviour
Damjan Lango
damjan.lango@gmail.com
Mon Oct 8 21:37:00 GMT 2007
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: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list