lock-file (hackage): Provide exclusive access to a resource using lock file, which are files whose purpose is to signal by their presence that some resource is locked.  Code example can be found in System.IO.LockFile module.
Keywords: bsd3|library|system|haskell|linux|lock-file|posix