Hello, In apr_file_lock documentation, it is written: "Locks are established on a per-thread/process basis; a second lock by the same thread will not block."
It works like that on Unix. But on Windows, a second call to apr_file_lock does block. apr_file_lock(fd, APR_FLOCK_EXCLUSIVE); apr_file_lock(fd, APR_FLOCK_EXCLUSIVE); /* blocks on Windows */ -- Marc Mongenet Creator of the Web 2 Markup Language http://w2ml.com
