summaryrefslogtreecommitdiff
path: root/Annex/Transfer.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Annex/Transfer.hs')
-rw-r--r--Annex/Transfer.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Annex/Transfer.hs b/Annex/Transfer.hs
index 5e98a87d9..ec17609ea 100644
--- a/Annex/Transfer.hs
+++ b/Annex/Transfer.hs
@@ -81,6 +81,7 @@ runTransfer' ignorelock t file shouldretry a = do
case mfd of
Nothing -> return (Nothing, False)
Just fd -> do
+ setFdOption fd CloseOnExec True
locked <- catchMaybeIO $
setLock fd (WriteLock, AbsoluteSeek, 0, 0)
if isNothing locked