提交 d7a17fb3 编写于 作者: J James Tucker

LP_CLONE_FDIO_ROOT is now LP_CLONE_FDIO_NAMESPACE

上级 c481f85d
......@@ -83,7 +83,7 @@ impl Drop for LaunchpadDestructor {
// Load the executable
zx_cvt(launchpad_elf_load(launchpad, launchpad_vmo_from_file(self.get_argv()[0])))?;
zx_cvt(launchpad_load_vdso(launchpad, ZX_HANDLE_INVALID))?;
zx_cvt(launchpad_clone(launchpad, LP_CLONE_FDIO_ROOT | LP_CLONE_FDIO_CWD))?;
zx_cvt(launchpad_clone(launchpad, LP_CLONE_FDIO_NAMESPACE | LP_CLONE_FDIO_CWD))?;
// Clone stdin, stdout, and stderr
if let Some(fd) = stdio.stdin.fd() {
......
......@@ -180,7 +180,7 @@ pub fn launchpad_set_args(lp: *mut launchpad_t, argc: c_int,
// Launchpad clone constants
pub const LP_CLONE_FDIO_ROOT: u32 = 0x0001;
pub const LP_CLONE_FDIO_NAMESPACE: u32 = 0x0001;
pub const LP_CLONE_FDIO_CWD: u32 = 0x0002;
// LP_CLONE_FDIO_STDIO = 0x0004
// LP_CLONE_FDIO_ALL = 0x00FF
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册