Open SilvanScherrer opened 4 years ago
It seems flock doesnt work like on posix. At least i have a testcase where a LOCK_SH cant be updated to a LOCK_EX. Another issue seem that when LOCK_SH is set i cant write to the file. Heimdal has a testcase for that. And commit https://github.com/bitwiseworks/heimdal-os2/commit/eef9bc19ffe4368d71b76db8f8309468573bab6b works around it.
It seems flock doesnt work like on posix. At least i have a testcase where a LOCK_SH cant be updated to a LOCK_EX. Another issue seem that when LOCK_SH is set i cant write to the file. Heimdal has a testcase for that. And commit https://github.com/bitwiseworks/heimdal-os2/commit/eef9bc19ffe4368d71b76db8f8309468573bab6b works around it.