fd-util: export get_max_fd() so that we can use it in tests

This commit is contained in:
Lennart Poettering
2021-10-27 17:56:36 +02:00
parent ab27b2fe56
commit 73fc0cbc87
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ _pure_ static bool fd_in_set(int fd, const int fdset[], size_t n_fdset) {
return false;
}
static int get_max_fd(void) {
int get_max_fd(void) {
struct rlimit rl;
rlim_t m;