forgot some lifts
This commit is contained in:
parent
092041fab0
commit
83dc82c232
3 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ lockFileShared file = go =<< fromLockPool file
|
|||
mode <- annexFileMode
|
||||
lockhandle <- liftIO $ noUmask mode $
|
||||
openFd file ReadOnly (Just mode) defaultFileFlags
|
||||
setFdOption lockhandle CloseOnExec True
|
||||
liftIO $ setFdOption lockhandle CloseOnExec True
|
||||
liftIO $ waitToSetLock lockhandle (ReadLock, AbsoluteSeek, 0, 0)
|
||||
#else
|
||||
lockhandle <- liftIO $ waitToLock $ lockShared file
|
||||
|
|
|
@ -153,7 +153,7 @@ sshCleanup = mapM_ cleanup =<< enumSocketFiles
|
|||
mode <- annexFileMode
|
||||
fd <- liftIO $ noUmask mode $
|
||||
openFd lockfile ReadWrite (Just mode) defaultFileFlags
|
||||
setFdOption fd CloseOnExec True
|
||||
liftIO $ setFdOption fd CloseOnExec True
|
||||
v <- liftIO $ tryIO $
|
||||
setLock fd (WriteLock, AbsoluteSeek, 0, 0)
|
||||
case v of
|
||||
|
|
|
@ -86,7 +86,7 @@ runHooks r starthook stophook a = do
|
|||
mode <- annexFileMode
|
||||
fd <- liftIO $ noUmask mode $
|
||||
openFd lck ReadWrite (Just mode) defaultFileFlags
|
||||
setFdOption fd CloseOnExec True
|
||||
liftIO $ setFdOption fd CloseOnExec True
|
||||
v <- liftIO $ tryIO $
|
||||
setLock fd (WriteLock, AbsoluteSeek, 0, 0)
|
||||
case v of
|
||||
|
|
Loading…
Reference in a new issue