提交 5b951e6d 编写于 作者: jia zhang's avatar jia zhang

rune/libenclave: Close exec fifo fd twice

Unlike what is done in the process of initialization of container
entrypoint, the exec fifo fd is not closed without closing it
explicitly, resulting in rune start cannot be terminated.
Signed-off-by: jia zhang's avatarJia Zhang <zhang.jia@linux.alibaba.com>
上级 cae9a39b
......@@ -226,6 +226,7 @@ func finalizeInitialization(fifoFd int) error {
// since been resolved.
// https://github.com/torvalds/linux/blob/v4.9/fs/exec.c#L1290-L1318
unix.Close(fifoFd)
unix.Close(fd)
return nil
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册