mirror of
https://github.com/clearlinux/hyperstart.git
synced 2026-08-22 05:56:10 +00:00
Merge pull request #35 from gao-feng/close
do not close pipe in write side
This commit is contained in:
+3
-3
@@ -409,8 +409,9 @@ out:
|
||||
close(pidns);
|
||||
close(utsns);
|
||||
close(ipcns);
|
||||
close(arg->ctl_pipe[0]);
|
||||
close(arg->ctl_pipe[1]);
|
||||
/* hyper_container_stage0 shares fd table with init, let init closes pipe. */
|
||||
//close(arg->ctl_pipe[0]);
|
||||
//close(arg->ctl_pipe[1]);
|
||||
|
||||
_exit(ret);
|
||||
}
|
||||
@@ -427,7 +428,6 @@ int hyper_start_container_stage0(struct hyper_container *c, struct hyper_pod *po
|
||||
int ret = -1, pid;
|
||||
uint32_t type;
|
||||
|
||||
|
||||
if (pipe2(arg.ctl_pipe, O_CLOEXEC) < 0) {
|
||||
perror("create pipe between hyper init and pod init failed");
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user