From: Serge Hallyn Date: Mon, 3 Jun 2013 15:47:21 +0000 (-0500) Subject: lxcapi_create: don't close stdin/out/err X-Git-Tag: lxc-1.0.0.alpha1~1^2~170 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44ef0c0c7200ef4e8783387d886d3748da3d50fd;p=thirdparty%2Flxc.git lxcapi_create: don't close stdin/out/err Otherwise we can't see template progress. Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index 61e1327cd..3764923f8 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -806,13 +806,6 @@ static bool lxcapi_create(struct lxc_container *c, const char *t, struct bdev *bdev = NULL; int i; - close(0); - close(1); - close(2); - open("/dev/null", O_RDONLY); - open("/dev/null", O_RDWR); - open("/dev/null", O_RDWR); - if (unshare(CLONE_NEWNS) < 0) { ERROR("error unsharing mounts"); exit(1);