Fix emulation of shell redirection
commitde2cbf4bb23c0d3c59515982b91e47ebbf209ac1
authorOlly Betts <olly@survex.com>
Thu, 8 Nov 2018 04:45:42 +0000 (8 17:45 +1300)
committerOlly Betts <olly@survex.com>
Thu, 8 Nov 2018 04:58:20 +0000 (8 17:58 +1300)
tree8f722ea8b62f2153bfb98f272c4fe9cab1202d30
parent23a9eafa924c3cf263ebef4c034c8c83e8e1a6c2
Fix emulation of shell redirection

We try to avoid using the shell when running external filters, and
we can emulate 2>/dev/null in commands, but if the indexer's stderr was
closed this emulation was buggy and would make give the filter a closed
stderr instead of one redirected to /dev/null.
xapian-applications/omega/runfilter.cc