chiark / gitweb /
fd-util: drop stdio_unset_cloexec(), it's not used anymore
authorLennart Poettering <lennart@poettering.net>
Wed, 28 Feb 2018 22:24:50 +0000 (23:24 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:59:13 +0000 (07:59 +0200)
src/basic/fd-util.c
src/basic/fd-util.h

index 87a35d35c72d0cd08dbca75ab3b7b2067e3b4baf..c67d4243a30dc858538205189ec9e426087facaf 100644 (file)
@@ -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;
 
index 7c39257cdc4560b1983e130ce352b53bf41bdd4f..56fae8a47338c7694bf4626761d48a8672a5a1db 100644 (file)
@@ -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);