Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smerritt/flockit
LD_PRELOAD shim to add file locking to programs that don't do it (I'm looking at you, rsync!)
https://github.com/smerritt/flockit
Last synced: 2 months ago
JSON representation
LD_PRELOAD shim to add file locking to programs that don't do it (I'm looking at you, rsync!)
- Host: GitHub
- URL: https://github.com/smerritt/flockit
- Owner: smerritt
- License: other
- Created: 2012-08-10T20:58:21.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-08-10T23:59:33.000Z (over 12 years ago)
- Last Synced: 2024-08-03T17:10:21.681Z (6 months ago)
- Language: C
- Size: 85.9 KB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ld-preload - flockit - add file locking to programs that don't do it (Libraries)
README
# Flockit: add file locking to programs that don't have it.
This library exists solely because rsync doesn't have file locking.
It's not used like a normal library; you don't link against it, and
you don't have to patch your source code to use it. It's inserted
between your program and its libraries by use of `LD_PRELOAD`.## Example (with libflockit.so in the current directory)
`$ env LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH LD_PRELOAD=libflockit.so FLOCKIT_FILE_PREFIX=test rsync SRC DEST`