| 257 | typename = typename std::enable_if< |
| 258 | std::is_same<typename Iterable::value_type, int>::value>::type> |
| 259 | static void close(const Iterable& fds) |
| 260 | { |
| 261 | int errsav = errno; |
| 262 | |
| 263 | foreach (int fd, fds) { |
| 264 | ::close(fd); // Need to call the async-signal safe version. |
| 265 | } |
| 266 | |
| 267 | errno = errsav; |
| 268 | } |
| 269 | |
| 270 | |
| 271 | Try<pid_t> clone( |
no outgoing calls