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

Method stdin_pipe

coprocess-unix.cpp:65–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65std::ostream* Coprocess::stdin_pipe ()
66{
67 if (!stdin_pipe_ostream) {
68 int fds[2];
69 if (pipe(fds) == -1) {
70 throw System_error("pipe", "", errno);
71 }
72 stdin_pipe_reader = fds[0];
73 stdin_pipe_writer = fds[1];
74 stdin_pipe_ostream = new ofhstream(this, write_stdin);
75 }
76 return stdin_pipe_ostream;
77}
78
79void Coprocess::close_stdin ()
80{

Callers 2

exec_command_with_inputFunction · 0.45
get_encrypted_filesFunction · 0.45

Calls 1

System_errorClass · 0.85

Tested by

no test coverage detected