static void capture_stream_process (void *v, atf_process_child_t * c) { struct capture_stream *s = v; switch (s->m_base.m_type) { case stdout_type: (void) read_line (atf_process_child_stdout (c), &s->m_msg); break; case stderr_type: (void) read_line (atf_process_child_stderr (c), &s->m_msg); break; default: UNREACHABLE; } }
int impl::child::stderr_fd(void) { return atf_process_child_stderr(&m_child); }