MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / drop

Method drop

xtask/src/main.rs:3486–3495  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

3484
3485impl Drop for NativePostgres {
3486 fn drop(&mut self) {
3487 if self.child.try_wait().ok().flatten().is_none() {
3488 terminate_child_gracefully(&mut self.child);
3489 if self.child.try_wait().ok().flatten().is_none() {
3490 let _ = self.child.kill();
3491 }
3492 let _ = self.child.wait();
3493 }
3494 let _ = fs::remove_dir_all(&self.root);
3495 }
3496}
3497
3498fn terminate_child_gracefully(child: &mut Child) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected