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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user