Function wasix::process_spawn
source · [−]pub unsafe fn process_spawn(
name: &str,
chroot: Bool,
args: &str,
preopen: &str,
stdin: StdioMode,
stdout: StdioMode,
stderr: StdioMode,
working_dir: &str
) -> Result<ProcessHandles, BusError>Expand description
Spawns a new process within the context of this machine
Parameters
name- Name of the process to be spawnedchroot- Indicates if the process will chroot or notargs- List of the arguments to pass the process (entries are separated by line feeds)preopen- List of the preopens for this process (entries are separated by line feeds)stdin- How will stdin be handledstdout- How will stdout be handledstderr- How will stderr be handledworking_dir- Working directory where this process should run (passing ‘.’ will use the current directory)
Return
Returns a bus process id that can be used to invoke calls