MCPcopy Create free account
hub / github.com/arun11299/cpp-subprocess / cleanup_fds

Method cleanup_fds

cpp-subprocess/subprocess.hpp:1242–1253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1240 void setup_comm_channels();
1241
1242 void cleanup_fds()
1243 {
1244 if (write_to_child_ != -1 && read_from_parent_ != -1) {
1245 subprocess_close(write_to_child_);
1246 }
1247 if (write_to_parent_ != -1 && read_from_child_ != -1) {
1248 subprocess_close(read_from_child_);
1249 }
1250 if (err_write_ != -1 && err_read_ != -1) {
1251 subprocess_close(err_read_);
1252 }
1253 }
1254
1255 void close_parent_fds()
1256 {

Callers 1

execute_processMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected