Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

flock() is not working in Mono/Linux #81

Open
kripper opened this issue Apr 11, 2017 · 4 comments
Open

flock() is not working in Mono/Linux #81

kripper opened this issue Apr 11, 2017 · 4 comments

Comments

@kripper
Copy link

kripper commented Apr 11, 2017

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.

@jakubmisek
Copy link
Member

any cross-platform .NET api for that ?

@kripper
Copy link
Author

kripper commented Apr 11, 2017

Sure, maybe https://github.com/sjmelia/flock

@jakubmisek
Copy link
Member

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

@kripper
Copy link
Author

kripper commented Mar 17, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants