Skip to content

LD_PRELOAD shim to add file locking to programs that don't do it (I'm looking at you, rsync!)

License

Notifications You must be signed in to change notification settings

smerritt/flockit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

LD_PRELOAD shim to add file locking to programs that don't do it (I'm looking at you, rsync!)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages