redir: Use memfd_create instead of pipe
commit509f5b0dcd710804fb6c66750c7c7fd2d30a3ec9
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 21 Apr 2024 00:33:53 +0000 (21 08:33 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 28 Apr 2024 00:51:10 +0000 (28 08:51 +0800)
treec3ef6df9277a0a9eacd0dc06a55c88ab9b33738d
parent9881d00e939e75e5348aebe6046ff80d3b7edb17
redir: Use memfd_create instead of pipe

Use memfd_create(2) instead of pipe(2).  With pipe(2), a fork
is required if the amount of data to be written exceeds the pipe
size.  This is not the case with memfd_create.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
configure.ac
src/eval.c
src/redir.c
src/redir.h
src/system.h