subprocess::ovariable_descriptor class

Base classes

class opipe_descriptor
A descriptor wrapping the output end of a posix OS pipe.

Constructors, destructors, conversion operators

ovariable_descriptor(std::string& output_var) explicit

Public functions

void close() override
Tear down the descriptor.
void read() virtual

Function documentation

void subprocess::ovariable_descriptor::close() override

Tear down the descriptor.

close() is called by subprocess::execute() after the process is spawned, but before waiting. This should ideally be the place where you should tear down the constructs that were required for process I/O.