Commit 44ef0c0c by Serge Hallyn

lxcapi_create: don't close stdin/out/err

Otherwise we can't see template progress. Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 569bee5c
...@@ -806,13 +806,6 @@ static bool lxcapi_create(struct lxc_container *c, const char *t, ...@@ -806,13 +806,6 @@ static bool lxcapi_create(struct lxc_container *c, const char *t,
struct bdev *bdev = NULL; struct bdev *bdev = NULL;
int i; 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) { if (unshare(CLONE_NEWNS) < 0) {
ERROR("error unsharing mounts"); ERROR("error unsharing mounts");
exit(1); exit(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment