clean up temp file

This commit is contained in:
Joey Hess 2015-11-13 12:52:24 -04:00
parent e31a51c5bb
commit 88d94e674c
Failed to extract signature

View file

@ -93,7 +93,9 @@ tryLock lockfile = trySideLock lockfile $ \sidelock -> do
return Nothing
let tooklock = return $ Just $ LockHandle lockfile fd sidelock
ifM (isJust <$> catchMaybeIO (createLink tmp lockfile))
( tooklock
( do
nukeFile tmp
tooklock
, do
v <- readPidLock lockfile
hn <- getHostName