Commit 779b9e69 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari

PackageDb: Explicitly unlock package database before closing

Reviewers: austin

Subscribers: rwbarton, thomie

GHC Trac Issues: #13945

Differential Revision: https://phabricator.haskell.org/D3874
parent a27bb1bd
......@@ -267,7 +267,11 @@ lockPackageDbWith mode file = do
return $ PackageDbLock hnd
lockPackageDb = lockPackageDbWith ExclusiveLock
unlockPackageDb (PackageDbLock hnd) = hClose hnd
unlockPackageDb (PackageDbLock hnd) = do
#if MIN_VERSION_base(4,11,0)
hUnlock hnd
#endif
hClose hnd
-- MIN_VERSION_base(4,10,0)
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment