summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-27 05:45:57 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-27 05:45:57 +0200
commitade509ce73ba1de3bcda8b012961a3045f721df7 (patch)
tree6d814e6d7988f8c871c2cc63e8a56c0d210696dd /src/main.c
parent4690698d4949d8b42e4c3a87944075ceaf685e5a (diff)
main: move make_null_stdio() to util.c
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/main.c b/src/main.c
index 7dad015e30..83cf2e7057 100644
--- a/src/main.c
+++ b/src/main.c
@@ -180,20 +180,6 @@ static void install_crash_handler(void) {
sigaction_many(&sa, SIGNALS_CRASH_HANDLER, -1);
}
-static int make_null_stdio(void) {
- int null_fd, r;
-
- if ((null_fd = open("/dev/null", O_RDWR|O_NOCTTY)) < 0) {
- log_error("Failed to open /dev/null: %m");
- return -errno;
- }
-
- if ((r = make_stdio(null_fd)) < 0)
- log_warning("Failed to dup2() device: %s", strerror(-r));
-
- return r;
-}
-
static int console_setup(bool do_reset) {
int tty_fd, r;