module for pid lock files with atomic stale lock file takeover when possible
This commit is contained in:
parent
ecc203bde2
commit
710d1eeeac
4 changed files with 147 additions and 4 deletions
13
Utility/LockFile/LockStatus.hs
Normal file
13
Utility/LockFile/LockStatus.hs
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue