avoid throwing exception when the handle is closed
authorJoey Hess <joeyh@joeyh.name>
Wed, 18 Nov 2020 19:10:35 +0000 (15:10 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 18 Nov 2020 19:10:35 +0000 (15:10 -0400)
commit682829c200edf79b7762f87eff56845ff4ad2444
tree96173de3aa82588015b7fcdbe9a0b55c1873a908
parentb021e2322fff44c96ce2e9cccf39454dfade1399
avoid throwing exception when the handle is closed

The handle could get closed eg, by cleanupProcess being called,
which forces the process to exit and closes all its handles.

At this point, the test case in https://git-annex.branchable.com/bugs/Buggy_external_special_remote_stalls_after_7245a9e/
is fixed.
Utility/Process.hs