fd-util: drop close_all_fds_by_proc()

With the previous commit, now the function is used only on OOM.
In that case, let's do like close_all_fds_without_malloc().
This commit is contained in:
Yu Watanabe
2026-01-13 10:21:36 +09:00
parent c471cca093
commit d58c826c54
3 changed files with 6 additions and 50 deletions
-1
View File
@@ -112,7 +112,6 @@ int get_max_fd(void);
int close_all_fds(const int except[], size_t n_except);
int close_all_fds_without_malloc(const int except[], size_t n_except);
int close_all_fds_by_proc(const int except[], size_t n_except);
int close_all_fds_frugal(const int except[], size_t n_except);
int pack_fds(int fds[], size_t n);