basic/fd-util: drop report from fd_cloexec_many

fd_cloexec_many promised to report if work was done, but that code was
not effective, because it always reported true if any fds were open.
But no callers care about the return value, so let's just drop this.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2024-05-30 12:07:57 +02:00
parent 4199866ac5
commit 613b698eb4
-3
View File
@@ -212,9 +212,6 @@ int fd_cloexec_many(const int fds[], size_t n_fds, bool cloexec) {
continue;
RET_GATHER(r, fd_cloexec(*fd, cloexec));
if (r >= 0)
r = 1; /* report if we did anything */
}
return r;