Sends a byte vector to the child, then reads its output and error until it exits.

Synopsis

Declared in <util/subprocess.h>

std::pair<OutBuffer, ErrBuffer>
communicate(std::vector<char> const& msg);

Return Value

The captured output and error buffers.

Parameters

Name

Description

msg

Bytes to send first.

Created with MrDocs