subprocess::Popen::communicate

Reads the child's output and error until it exits, without sending any input.

Synopsis

Declared in <util/subprocess.h>

std::pair<OutBuffer, ErrBuffer>
communicate();

Return Value

The captured output and error buffers.