Homec4science

Add a filesystem locking primitive

Authored by epriestley <git@epriestley.com> on Jun 26 2012, 02:46.

Description

Add a filesystem locking primitive

Summary:
This is a simple wrapper around flock() that gives us sensible semantics.

These locks behave well and are released when the process exits, even if it kill -9'd, so we don't need to do any kind of lock recovery or timeouts. This is really nice since handling that stuff is awful.

Test Plan: Ran unit tests, which provide reasonably extensive coverage of behavior.

Reviewers: jungejason, nh, vrana

Reviewed By: nh

CC: aran

Maniphest Tasks: T1400

Differential Revision: https://secure.phabricator.com/D2853

Details

Committed
epriestley <git@epriestley.com>Jun 26 2012, 02:46
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU5fa76b5936e7: Add basic remote console support
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU8fa066d95907: Add a filesystem locking primitive (authored by epriestley <git@epriestley.com>).Jun 26 2012, 02:46