send Next message to hyper in vbox environment

Signed-off-by: Gao feng <feng@hyper.sh>
This commit is contained in:
Gao feng
2015-08-06 10:21:05 +08:00
parent 56e5e66f86
commit aa265352ff
2 changed files with 5 additions and 5 deletions
+5 -1
View File
@@ -112,6 +112,10 @@ static int container_setup_mount(struct hyper_container *container)
char src[512];
struct fsmap *map;
hyper_mkdir("/proc");
hyper_mkdir("/sys");
hyper_mkdir("/dev");
if (mount("proc", "/proc", "proc", 0, NULL) < 0 ||
mount("sysfs", "/sys", "sysfs", 0, NULL) < 0 ||
mount("devtmpfs", "/dev", "devtmpfs", 0, NULL) < 0) {
@@ -307,7 +311,6 @@ static int hyper_container_init(void *data)
fprintf(stdout, "root directory for container is %s/%s, init task %s\n",
root, container->rootfs, container->exec.argv[0]);
hyper_list_dir(root);
sprintf(oldroot, "%s/%s/.oldroot", root, container->rootfs);
if (hyper_mkdir(oldroot) < 0) {
perror("make oldroot directroy failed");
@@ -354,6 +357,7 @@ static int hyper_container_init(void *data)
close(arg->pipe[1]);
execvp(container->exec.argv[0], container->exec.argv);
perror("exec container command failed");
_exit(-1);
-4
View File
@@ -878,11 +878,7 @@ static struct hyper_event_ops hyper_channel_ops = {
.rbuf_size = 10240,
.len_offset = 4,
/* TODO: vbox hyper should support channel ack */
#ifdef WITH_VBOX
.ack = 0,
#else
.ack = 1,
#endif
};
static struct hyper_event_ops hyper_ttyfd_ops = {