From 96fcc89ab507e7daf7da403fd4d8c393a964ca35 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 28 Feb 2018 23:24:50 +0100 Subject: [PATCH] fd-util: drop stdio_unset_cloexec(), it's not used anymore --- src/basic/fd-util.c | 6 ------ src/basic/fd-util.h | 1 - 2 files changed, 7 deletions(-) diff --git a/src/basic/fd-util.c b/src/basic/fd-util.c index fdf6947..678ab12 100644 --- a/src/basic/fd-util.c +++ b/src/basic/fd-util.c @@ -191,12 +191,6 @@ int fd_cloexec(int fd, bool cloexec) { return 0; } -void stdio_unset_cloexec(void) { - (void) fd_cloexec(STDIN_FILENO, false); - (void) fd_cloexec(STDOUT_FILENO, false); - (void) fd_cloexec(STDERR_FILENO, false); -} - _pure_ static bool fd_in_set(int fd, const int fdset[], unsigned n_fdset) { unsigned i; diff --git a/src/basic/fd-util.h b/src/basic/fd-util.h index e8d915b..635a538 100644 --- a/src/basic/fd-util.h +++ b/src/basic/fd-util.h @@ -71,7 +71,6 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(DIR*, closedir); int fd_nonblock(int fd, bool nonblock); int fd_cloexec(int fd, bool cloexec); -void stdio_unset_cloexec(void); int close_all_fds(const int except[], unsigned n_except); -- 2.7.4