From 425efdbd12c8e32973c3f08684ae76121d1d3da1 Mon Sep 17 00:00:00 2001 From: rd235 Date: Wed, 15 Jan 2014 11:18:47 +0000 Subject: [PATCH] allow pipes on stdin for daemonized switches git-svn-id: https://svn.code.sf.net/p/vde/svn/trunk@568 d37a7db1-d92d-0410-89df-f68f52f87b57 --- vde-2/src/kvde_switch/consmgmt.c | 2 +- vde-2/src/vde_switch/consmgmt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vde-2/src/kvde_switch/consmgmt.c b/vde-2/src/kvde_switch/consmgmt.c index baf8df3..0cb0c90 100644 --- a/vde-2/src/kvde_switch/consmgmt.c +++ b/vde-2/src/kvde_switch/consmgmt.c @@ -567,7 +567,7 @@ static void init(void) } /* add stdin (if tty), connect and data fds to the set of fds we wait for * * input */ - if(isatty(0) && !daemonize) + if(!daemonize) { console_type=add_type(&swmi,0); add_fd(0,console_type,NULL); diff --git a/vde-2/src/vde_switch/consmgmt.c b/vde-2/src/vde_switch/consmgmt.c index f2e76c1..dba2992 100644 --- a/vde-2/src/vde_switch/consmgmt.c +++ b/vde-2/src/vde_switch/consmgmt.c @@ -570,7 +570,7 @@ static void init(void) } /* add stdin (if tty), connect and data fds to the set of fds we wait for * * input */ - if(isatty(0) && !daemonize) + if(!daemonize) { console_type=add_type(&swmi,0); add_fd(0,console_type,NULL); -- 2.11.4.GIT