pub fn create_child_process(&self, name: &[u8]) -> Result<(Process, Vmar), Status> {
        let parent_job_raw = self.raw_handle();
        let name_ptr = name.as_ptr();
        let name_len = name.len();
        let options = 0;
        let mut process_out = 0;
        let mut vmar_out = 0;
        let status = unsafe { sys::zx_process_create(
            parent_job_raw,
            name_ptr,
            name_len,
            options,
            &mut process_out,
            &mut vmar_out,
        ) };
        ok(status)?;
        unsafe { Ok((
            Process::from(Handle::from_raw(process_out)),
            Vmar::from(Handle::from_raw(vmar_out)),
        )) }
    }
/// Create a new process as a child of the current job.
///
/// On success, returns a handle to the new process and a handle to the
/// root of the new process's address space.
///
/// Wraps the
/// [zx_process_create](https://fuchsia.googlesource.com/fuchsia/+/master/zircon/docs/syscalls/process_create.md)
/// syscall.
Create a new process as a child of the current job.
On success, returns a handle to the new process and a handle to the
root of the new process's address space.

Wraps the
[zx_process_create]
syscall.
Create a new process as a child of the current job . On success returns a handle to the new process and a handle to the root of the new process ' s address space . Wraps the [ zx_process_create ] syscall .
pub fn create_child_process(&self, name: &[u8]) -> Result<(Process, Vmar), Status> {
        let parent_job_raw = self.raw_handle();
        let name_ptr = name.as_ptr();
        let name_len = name.len();
        let options = 0;
        let mut process_out = 0;
        let mut vmar_out = 0;
        let status = unsafe { sys::zx_process_create(
            parent_job_raw,
            name_ptr,
            name_len,
            options,
            &mut process_out,
            &mut vmar_out,
        ) };
        ok(status)?;
        unsafe { Ok((
            Process::from(Handle::from_raw(process_out)),
            Vmar::from(Handle::from_raw(vmar_out)),
        )) }
    }
pub fn create_child_process ( & self , name : & [ u8 ] ) -> Result < ( Process , Vmar ) , Status > { let parent_job_raw = self . raw_handle ( ) ; let name_ptr = name . as_ptr ( ) ; let name_len = name . len ( ) ; let options = 0 ; let mut process_out = 0 ; let mut vmar_out = 0 ; let status = unsafe { sys :: zx_process_create ( parent_job_raw , name_ptr , name_len , options , & mut process_out , & mut vmar_out , ) } ; ok ( status ) ? ; unsafe { Ok ( ( Process :: from ( Handle :: from_raw ( process_out ) ) , Vmar :: from ( Handle :: from_raw ( vmar_out ) ) , ) ) } }
Create a new process as a child of the current job.
Create a new process as a child of the current job .
&self
name
&[u8]
&self
name
&[u8]