MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / exec_loop_result

Function exec_loop_result

crates/openshell-server/src/grpc/sandbox.rs:1507–1516  ·  view source on GitHub ↗

Treat channel EOF before an exit status as relay failure, not exit code 1.

(exit_code: Option<i32>)

Source from the content-addressed store, hash-verified

1505
1506/// Treat channel EOF before an exit status as relay failure, not exit code 1.
1507fn exec_loop_result(exit_code: Option<i32>) -> Result<i32, Status> {
1508 exit_code.map_or_else(
1509 || {
1510 Err(Status::unavailable(
1511 "exec relay closed before the command reported an exit status",
1512 ))
1513 },
1514 Ok,
1515 )
1516}
1517
1518fn build_remote_exec_command(req: &ExecSandboxRequest) -> Result<String, String> {
1519 let mut parts = Vec::new();

Callers 2

run_exec_with_russhFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected