pub unsafe fn proc_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 spawned
  • chroot - Indicates if the process will chroot or not
  • args - 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 handled
  • stdout - How will stdout be handled
  • stderr - How will stderr be handled
  • working_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