How can I lock a directory in C on a linux machine

user357498 picture user357498 · Jan 11, 2012 · Viewed 7.4k times · Source

Will flock or lockf work on a directory? I there another way to lock a directory in C on a linux machine?

Answer

Kris picture Kris · Jan 11, 2012

Yes, more info about using flock on file/directory can be found here