]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxcapi_create: don't close stdin/out/err
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 3 Jun 2013 15:47:21 +0000 (10:47 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 3 Jun 2013 15:52:13 +0000 (10:52 -0500)
Otherwise we can't see template progress.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c

index 61e1327cd59b756f4df308a43cdca75afbf62c66..3764923f8481a8bcacb821a0a95d16e6bad74731 100644 (file)
@@ -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);