pub fn plan(
ctx: &Ctx,
view: &View,
pid: u32,
front: FrontEnd,
argv: Vec<Vec<u8>>,
env: EnvSource,
) -> Result<ExecPlan, i32>Expand description
Plans a nested launch: the command of the nested command line, run in a view composed from the requester’s.
§Arguments
ctx- Shared supervisor state.view- The requester’s view.pid- Requesting tracee thread id.front- Dialect of the command line.argv- The tracee’s full argument vector (argv[0]is the program).env- The tracee’s environment.
§Returns
A plan that always goes through the trampoline: for the real command, or to print a message on the tracee’s own stdout or stderr and exit.
§Errors
Errno from reading the tracee.