MCPcopy Create free account
hub / github.com/AGWA/git-crypt / stdout_pipe

Method stdout_pipe

coprocess-unix.cpp:93–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93std::istream* Coprocess::stdout_pipe ()
94{
95 if (!stdout_pipe_istream) {
96 int fds[2];
97 if (pipe(fds) == -1) {
98 throw System_error("pipe", "", errno);
99 }
100 stdout_pipe_reader = fds[0];
101 stdout_pipe_writer = fds[1];
102 stdout_pipe_istream = new ifhstream(this, read_stdout);
103 }
104 return stdout_pipe_istream;
105}
106
107void Coprocess::close_stdout ()
108{

Callers 2

exec_commandFunction · 0.45
get_encrypted_filesFunction · 0.45

Calls 1

System_errorClass · 0.85

Tested by

no test coverage detected