module for pid lock files with atomic stale lock file takeover when possible

This commit is contained in:
Joey Hess 2015-11-12 15:38:02 -04:00
parent ecc203bde2
commit 710d1eeeac
Failed to extract signature
4 changed files with 147 additions and 4 deletions

View file

@ -0,0 +1,13 @@
{- LockStatus type
-
- Copyright 2014 Joey Hess <id@joeyh.name>
-
- License: BSD-2-clause
-}
module Utility.LockFile.LockStatus where
import System.Posix
data LockStatus = StatusUnLocked | StatusLockedBy ProcessID | StatusNoLockFile
deriving (Eq)