On Fri, Apr 19, 2024 at 11:24:46PM +0200, Jilles Tjoelker wrote: > > Using pipe or memfd conditionally based on the length of the > here-document and whether memfd_create(2) fails transiently might cause > even more obscure issues. The reason is that memfd ends up being a lot slower than pipe. Of course it's still way faster than fork + pipe, but until it catches up with pipe, we're better off using both. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt