]> git.itanic.dy.fi Git - rrdd/commit
run_piped: Fix file descriptor leak on pipe() fail.
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sun, 25 Oct 2020 16:09:51 +0000 (18:09 +0200)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sun, 25 Oct 2020 16:09:51 +0000 (18:09 +0200)
commit4816f9e02dd47a343fbac59f2955259c6c2dffdd
treedcbd6afc329c590f918f680fab15d0ea848f8128
parent596f74bf1a41e53fb4138a33f713fabdce73500e
run_piped: Fix file descriptor leak on pipe() fail.

If pipe() call fails for any reason, the already opened descriptors
need to be all closed. These typically fail if we are already leaking
descriptors elsewhere and we can't create any more new descriptors.

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