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

Method drop

crates/openshell-supervisor-network/src/procfs.rs:767–773  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

765 struct ChildGuard(libc::pid_t);
766 impl Drop for ChildGuard {
767 fn drop(&mut self) {
768 #[allow(unsafe_code)]
769 unsafe {
770 libc::kill(self.0, libc::SIGKILL);
771 libc::waitpid(self.0, std::ptr::null_mut(), 0);
772 }
773 }
774 }
775
776 let listener = TcpListener::bind("127.0.0.1:0").expect("bind listener");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected