DEVSENSE / Phalanger

PHP 5.4 compiler for .NET/Mono frameworks. Predecessor to the opensource PeachPie project (www.peachpie.io).

Home Page:http://v4.php-compiler.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flock() is not working in Mono/Linux

kripper opened this issue · comments

Mono is not supporting a way to lock files for Linux:
http://mono.1490590.n4.nabble.com/Equivalent-to-LockFileEx-on-Linux-td1575660.html

Any idea to solve or workaround this problem?

Most of the times flock() is used when we need to prevent really bad things to happen.

any cross-platform .NET api for that ?

sjmelia/flock uses pinvoke and linux/win32 only ... we would need a nuget package targeting netstandard1.5 and net46