MCPcopy Create free account
hub / github.com/3rdparty/libprocess / foreach

Function foreach

src/windows/subprocess.hpp:71–78  ·  view source on GitHub ↗

Close the child-ends of the file descriptors that are created by this function.

Source from the content-addressed store, hash-verified

69 // Close the child-ends of the file descriptors that are created
70 // by this function.
71 foreach (const int_fd& fd, fds) {
72 if (fd.is_valid()) {
73 Try<Nothing> result = os::close(fd);
74 if (result.isError()) {
75 return Error(result.error());
76 }
77 }
78 }
79
80 if (process_data.isError()) {
81 return Error(process_data.error());

Callers

nothing calls this directly

Calls 1

closeFunction · 0.85

Tested by

no test coverage detected