LP_CLONE_FDIO_ROOT is now LP_CLONE_FDIO_NAMESPACE

This commit is contained in:
James Tucker 2017-09-24 14:31:50 -07:00
parent c481f85dc2
commit d7a17fb3cf
2 changed files with 2 additions and 2 deletions

View file

@ -83,7 +83,7 @@ impl Command {
// 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() {

View file

@ -180,7 +180,7 @@ extern {
// 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