summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-02-28 23:24:50 +0100
committerLennart Poettering <lennart@poettering.net>2018-03-02 11:42:10 +0100
commit96fcc89ab507e7daf7da403fd4d8c393a964ca35 (patch)
tree0af2fa4a2091572703c77234b1af96fe9ee7bd5c
parentsd-bus: let's better not invade stdio territory when duplicating fds (diff)
downloadsystemd-96fcc89ab507e7daf7da403fd4d8c393a964ca35.tar.xz
systemd-96fcc89ab507e7daf7da403fd4d8c393a964ca35.zip
fd-util: drop stdio_unset_cloexec(), it's not used anymore
-rw-r--r--src/basic/fd-util.c6
-rw-r--r--src/basic/fd-util.h1
2 files changed, 0 insertions, 7 deletions
diff --git a/src/basic/fd-util.c b/src/basic/fd-util.c
index fdf69476587..678ab12bb8c 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 e8d915bfa6e..635a538b5ae 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);