]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
psgi_qx: use a temporary file rather than pipe
authorEric Wong <e@80x24.org>
Wed, 25 Oct 2023 00:29:26 +0000 (00:29 +0000)
committerEric Wong <e@80x24.org>
Wed, 25 Oct 2023 07:28:31 +0000 (07:28 +0000)
commit90b3a8dc2688cfb01927cd3b2cdcee445bf2c8f4
treeaadbbf80f9255acdcbe7bd859c3aae524fe12ba1
parent07f639c9219968a01d5c722424e9c61d3b146014
psgi_qx: use a temporary file rather than pipe

A pipe requires more context switches, syscalls, and code to
deal with unpredictable pipe EOF vs waitpid ordering.  So just
use the new spawn/aspawn features to automatically handle
slurping output into a string.
MANIFEST
lib/PublicInbox/Aspawn.pm [new file with mode: 0644]
lib/PublicInbox/Qspawn.pm