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

Add support to validate running process is actual locking process #30

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

stefandascalu64
Copy link
Contributor

Added Process.StartTime to the file as unix offset in ms.
Changed serialization implementation to use Marshall and Struct.
The StartTime is used to ensure that the PID in the lock file points to the original locking process and not another process that received the same ID.

@i-e-b i-e-b self-assigned this Aug 10, 2023
@stefandascalu64
Copy link
Contributor Author

Is there anything wrong? Did you notice a shortcoming in my implementation?
It would be useful to me if I could get some progress on this issue in the following weeks.

@i-e-b
Copy link
Owner

i-e-b commented Aug 24, 2023

Sorry, I've been in crunch-time trying to get a device ready for testing. I will try to look at this today.

@i-e-b i-e-b merged commit 05ff894 into i-e-b:master Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants