]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fd-util: drop stdio_unset_cloexec(), it's not used anymore 8314/head
authorLennart Poettering <lennart@poettering.net>
Wed, 28 Feb 2018 22:24:50 +0000 (23:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 2 Mar 2018 10:42:10 +0000 (11:42 +0100)
src/basic/fd-util.c
src/basic/fd-util.h

index fdf694765878c0149bcb602313ba4991345cbe5d..678ab12bb8c491c3b77e8802e8f07d1e791d933c 100644 (file)
@@ -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;
 
index e8d915bfa6e62470345e61b1aaf8eaf80aebd808..635a538b5ae097392668d17a1848920304b150d4 100644 (file)
@@ -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);