diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-10-12 15:53:27 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-10-27 17:56:36 +0200 |
commit | 11966552a88039869972ca4b450f622664bd1c5e (patch) | |
tree | 6d6142393eb02dab8d7ea9098e3e645bd7f64192 /src/basic/fd-util.h | |
parent | Revert "basic/fd-util: sort the 'except' array in place" (diff) | |
download | systemd-11966552a88039869972ca4b450f622664bd1c5e.tar.xz systemd-11966552a88039869972ca4b450f622664bd1c5e.zip |
fd-util: split out inner fallback loop of close_all_fds() as close_all_fds_without_malloc()
Diffstat (limited to '')
-rw-r--r-- | src/basic/fd-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/fd-util.h b/src/basic/fd-util.h index 459059c64e..e929386b53 100644 --- a/src/basic/fd-util.h +++ b/src/basic/fd-util.h @@ -58,6 +58,7 @@ int fd_nonblock(int fd, bool nonblock); int fd_cloexec(int fd, bool cloexec); 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 same_fd(int a, int b); |