convert to use hGetLineUntilExitOrEOF
authorJoey Hess <joeyh@joeyh.name>
Thu, 19 Nov 2020 20:13:31 +0000 (16:13 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 19 Nov 2020 20:13:31 +0000 (16:13 -0400)
commit613455e059c5f24025e765e33dc290bc454e7696
tree53a1d1710ca7bb93f007a367e9287df6d2a28a3f
parent66497d39b3bbbc564c8f521501dc6bf8b7ad2f68
convert to use hGetLineUntilExitOrEOF

It looks to me like the old code would have already dealt with the case
of ssh starting a ssh daemon that inherits stderr and keeps it open.
The ender thread closed the handle, which would unblock the other thread
and let it exit. Using hGetLineUntilExitOrEOF makes this more explicit
that it's dealt with and simplifies the code.
Remote/Helper/Ssh.hs