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

Method code

crates/openshell-supervisor-process/src/process.rs:1383–1387  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1381 /// Get the exit code, or 128 + signal number if killed by signal.
1382 #[must_use]
1383 pub fn code(&self) -> i32 {
1384 self.code
1385 .or_else(|| self.signal.map(|s| 128 + s))
1386 .unwrap_or(-1)
1387 }
1388
1389 /// Check if the process exited successfully.
1390 #[must_use]

Calls

no outgoing calls