This commit is contained in:
Joey Hess 2020-11-30 12:44:40 -04:00
parent 267bdaaac1
commit 1dc802a445
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -0,0 +1,15 @@
[[!comment format=mdwn
username="joey"
subject="""comment 2"""
date="2020-11-30T16:40:41Z"
content="""
Analysis: It's hanging on 'hClose hout'.
I think that's because there's a thread that is waiting for the next line
of output from the remote. hClose ends up taking a MVar, if the read
keeps that MVar unpopulate hClose can then hang. This is surprising; I've
never seen hClose hang, and the docs don't mention it can.
Solution will be to cleanly shutdown the async IO threads before shutting
down the external process.
"""]]