- 
                Notifications
    You must be signed in to change notification settings 
- Fork 5
Closed
Labels
developmentStandard developmentStandard developmentenhancementNew feature or requestNew feature or requestwontfixThis will not be worked onThis will not be worked on
Description
Specification
Previously we were using the proper-lockfile library to lock and unlock the session file during CLI calls, however, we have recently switched over to using the much simpler (and newer) fd-lock for this purpose. However, proper-lockfile is still being used for the agent lockfile, so we should change this to use fd-lock instead in order to unify our file locking across all domains.
Since fd-lock currently only has a lock() and unlock() command (and no way of checking if a file is locked without attempting to lock it or blocking access to a locked file) we will most likely need to look into the Node C++ bindings and the POSIX manual in order to adapt the library to our needs.
Additional context
See #236, where fd-lock was incorporated into the sessions domain.
Tasks
- Look into the Node C++ bindings and POSIX manual
-  Make changes to the fd-locklibrary to meet our requirements
-  Replace proper-lockfileusage withfd-lockin the agent lockfile
- Test that these changes have not affected functionality in any way
Metadata
Metadata
Assignees
Labels
developmentStandard developmentStandard developmentenhancementNew feature or requestNew feature or requestwontfixThis will not be worked onThis will not be worked on