summaryrefslogtreecommitdiff
path: root/Annex/Ssh.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Annex/Ssh.hs')
-rw-r--r--Annex/Ssh.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Annex/Ssh.hs b/Annex/Ssh.hs
index 246ac338d..238af0588 100644
--- a/Annex/Ssh.hs
+++ b/Annex/Ssh.hs
@@ -153,6 +153,7 @@ sshCleanup = mapM_ cleanup =<< enumSocketFiles
mode <- annexFileMode
fd <- liftIO $ noUmask mode $
openFd lockfile ReadWrite (Just mode) defaultFileFlags
+ setFdOption fd CloseOnExec True
v <- liftIO $ tryIO $
setLock fd (WriteLock, AbsoluteSeek, 0, 0)
case v of