diff options
Diffstat (limited to 'Command')
-rw-r--r-- | Command/PreCommit.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Command/PreCommit.hs b/Command/PreCommit.hs index 09ff042aa..61508ba9b 100644 --- a/Command/PreCommit.hs +++ b/Command/PreCommit.hs @@ -101,6 +101,7 @@ lockPreCommitHook a = do #ifndef mingw32_HOST_OS lock lockfile mode = do l <- liftIO $ noUmask mode $ createFile lockfile mode + setFdOption l CloseOnExec True liftIO $ waitToSetLock l (WriteLock, AbsoluteSeek, 0, 0) return l unlock = closeFd |