]> git.itanic.dy.fi Git - rrdd/commit
process.c: Ensure stderr gets read after process has died
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Fri, 11 Mar 2011 20:07:56 +0000 (22:07 +0200)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Fri, 11 Mar 2011 21:26:11 +0000 (23:26 +0200)
commit43837144446c7168cba1bf720a3ebc1d15be48a6
tree056b9de287eb8b44a4a49a3af4efceb523b37b39
parent0fc0e96d7886ea97f608463a12bf2dcaf1d78313
process.c: Ensure stderr gets read after process has died

For some reason select() doesn't indicate that stderr might contain
bytes that can be read. Workaround for the issue is to read stderr
just in case after we receive EOF from stdin.

Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
process.c