working hGetLineUntilExitOrEOF
authorJoey Hess <joeyh@joeyh.name>
Wed, 18 Nov 2020 18:21:47 +0000 (14:21 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 18 Nov 2020 18:21:47 +0000 (14:21 -0400)
commit787b39c7c14d1e8edb69040e88ee4c80e1b5d491
tree1e3cc7e5333b0042269bcf427500f6d601d9ed23
parent9af0000e0ff28c8eaae0ee1ce6838063d0a5ebef
working hGetLineUntilExitOrEOF

The problem with the old version seemed to be that hWaitForInput blocks
rather than timing out when being run concurrently with hGetLine on the
same handle.

This passes the bench test, and also works when run concurrently on
different handles.
Utility/Process.hs