close send side of password pipe on exec
authorJoey Hess <joeyh@joeyh.name>
Wed, 10 Jan 2024 21:31:58 +0000 (17:31 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 10 Jan 2024 21:31:58 +0000 (17:31 -0400)
commit790600f7b2303bb7b201975598a80fb4672aa391
tree1482faffcf8ff354b6f46452b208ab036951b7ce
parent60366e73e058b2f6762d3e6c4ae3a9b4c7ac3e83
close send side of password pipe on exec

This avoids a hang approximately 1% of the time when running the test
suite on StatelessOpenPGP.

Since I've not seen git-annex hang when running git like that, I guess
git probably does something that avoids hanging similarly. Still, fixed
the same problem in Utility.Gpg too.

Sponsored-by: Kevin Mueller on Patreon
Utility/Gpg.hs
Utility/StatelessOpenPGP.hs