Treat channel EOF before an exit status as relay failure, not exit code 1.
(exit_code: Option<i32>)
| 1505 | |
| 1506 | /// Treat channel EOF before an exit status as relay failure, not exit code 1. |
| 1507 | fn 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 | |
| 1518 | fn build_remote_exec_command(req: &ExecSandboxRequest) -> Result<String, String> { |
| 1519 | let mut parts = Vec::new(); |
no outgoing calls
no test coverage detected