fcntl() bug? if called second times!

2003-01-13 Thread Heiko Elger
Hello, I try to comiple an run the distcc package - but I get errors while running. I figured out, tha the problems are the fcntl() calls - perhaps ther is a bug in cygwin? The following code runs differently in cygwin and linux. If I want ro lock the whole file twice, but still the same process,

Re: fcntl() bug? if called second times!

2003-01-13 Thread Pavel Tsekov
Hello, Cygwin doesn't support advisory file locking. It implements file locking via the Win32 api LockFile*. Find out more here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/lockfile.asp And more specifically this part: [...] Locking a portion of a file for