base: Implement file locking in terms of POSIX locks
authorBen Gamari <bgamari.foss@gmail.com>
Mon, 30 Oct 2017 00:46:21 +0000 (20:46 -0400)
committerBen Gamari <ben@smart-cactus.org>
Mon, 30 Oct 2017 00:46:22 +0000 (20:46 -0400)
commit3b784d440d4b01b4c549df7c9a3ed2058edfc780
tree783f115c5f8cd8f82a9a8fe1a89a15ea7098575d
parent0e953da147c405648356f75ee67eda044fffad49
base: Implement file locking in terms of POSIX locks

Hopefully these are more robust to NFS malfunction than BSD flock-style
locks.  See #13945.

Test Plan: Validate via @simonpj

Reviewers: austin, hvr

Subscribers: rwbarton, thomie, erikd, simonpj

GHC Trac Issues: #13945

Differential Revision: https://phabricator.haskell.org/D4129
libraries/base/GHC/IO/Handle/Lock.hsc
libraries/base/configure.ac