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

Method drop

crates/openshell-cli/src/ssh.rs:199–206  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

197impl Drop for ParentSignalGuard {
198 #[allow(unsafe_code)]
199 fn drop(&mut self) {
200 for &(signal, previous) in self.previous.iter().rev() {
201 // SAFETY: these `SigAction` values were returned by `sigaction`
202 // above for this process, so restoring them here returns the parent
203 // signal handlers to their original state.
204 let _ = unsafe { sigaction(signal, &previous) };
205 }
206 }
207}
208
209#[cfg(unix)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected