diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-11-12 15:38:02 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-11-12 15:39:49 -0400 |
commit | 0c24c5e78a6c460caa02075857dbf7efd6239857 (patch) | |
tree | 35f366c3a023999fd9a18c9a109bb8930185016e /Utility/LockFile/LockStatus.hs | |
parent | b42df643c6512ecdc29bf1aeb20fd842528c41f7 (diff) |
module for pid lock files with atomic stale lock file takeover when possible
Diffstat (limited to 'Utility/LockFile/LockStatus.hs')
-rw-r--r-- | Utility/LockFile/LockStatus.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Utility/LockFile/LockStatus.hs b/Utility/LockFile/LockStatus.hs new file mode 100644 index 000000000..3f466c125 --- /dev/null +++ b/Utility/LockFile/LockStatus.hs @@ -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) |