This commit is contained in:
Joey Hess 2016-03-01 13:47:49 -04:00
parent 8933c21b5e
commit 26c499492f
Failed to extract signature

View file

@ -33,6 +33,8 @@ import Prelude
-- Takes a pid lock, blocking until the lock is available or the timeout.
waitLock :: Seconds -> LockFile -> IO LockHandle
waitLock timeout file = makeLockHandle
-- LockShared for STM lock, because a pid lock can be the top-level
-- lock with various other STM level locks gated behind it.
(P.waitTakeLock P.lockPool file LockShared)
(mk <$> F.waitLock timeout file)