diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-02-28 23:24:50 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-05-30 07:59:13 +0200 |
commit | d5c8234a003cc47535d0ceef4836fabe30ff91c6 (patch) | |
tree | e3b3831da434473a7bf919486bbd9aa654be7a4b /src | |
parent | 6e7275d6bc619d926ca7688326d42cd66cd3d6c0 (diff) |
fd-util: drop stdio_unset_cloexec(), it's not used anymore
Diffstat (limited to 'src')
-rw-r--r-- | src/basic/fd-util.c | 6 | ||||
-rw-r--r-- | src/basic/fd-util.h | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/basic/fd-util.c b/src/basic/fd-util.c index 87a35d35c..c67d4243a 100644 --- a/src/basic/fd-util.c +++ b/src/basic/fd-util.c @@ -193,12 +193,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 7c39257cd..56fae8a47 100644 --- a/src/basic/fd-util.h +++ b/src/basic/fd-util.h @@ -73,7 +73,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); |