Close the child-ends of the file descriptors that are created by this function.
| 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()); |