]> 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 20:07:56 +0000 (22:07 +0200)
commitf08763c74725d93dd6a50b7504442bc41f5fcb39
treeaa95c9be24dc07e6f43b6245f1a78b91cf6e9ef2
parentb6776744b6128ce7e397fe08cfccc69e77b4efe2
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