Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track multiple edition of a Pud #31

Open
jeanguyomarch opened this issue Oct 27, 2016 · 3 comments
Open

Track multiple edition of a Pud #31

jeanguyomarch opened this issue Oct 27, 2016 · 3 comments

Comments

@jeanguyomarch
Copy link
Collaborator

If a PUD open in one editor has been modified from outside, the editor should been about the file being modified by somone else.

@jeanguyomarch
Copy link
Collaborator Author

That's not easy to do. There is the Ecore_File_Monitor, but it does not differenciate the origins of the modifications. It is not a fantastic improvement, so don't make it a showstopper.

@Lewiscowles1986
Copy link

inotify or open an exclusive lock on the file so no others can write to it

@jeanguyomarch
Copy link
Collaborator Author

Thanks for these ideas, unfortnuately Inotify is not cross-plaform , and I want war2edit to run on macOS.
I haven't considered the exclusive lock, maybe that's the way to go, but then again there is the cross-platform consideration. C11 introduced the "x" parameter to fopen(), but this would require C11 compilers and libc.

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

No branches or pull requests

2 participants