]> git.itanic.dy.fi Git - rrdd/commit
process: run_piped_stream: Use correct direction with fdopen()
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Wed, 1 Mar 2023 16:18:29 +0000 (18:18 +0200)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Wed, 1 Mar 2023 16:18:29 +0000 (18:18 +0200)
commit328abfb28dbb2e0973c2d3de5e4075665c894c2b
tree117afcf2c1b39c9ed7347289e6aa4b6f54031f9c
parent3a3afa0ea5bc6ff6b8a5c3746f7d8e6617f2bfca
process: run_piped_stream: Use correct direction with fdopen()

The stdinf, stdoutf and stderrf all refer to the file streams from the
child, and their directions are opposite on parent side, where we are
reading from or writing to them. Therefore they are bit unintuitively
opposite to what one might thought just by quickly glancing over the
code.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
process.c