removed incorrect closure drop

This commit is contained in:
Jake Hillion 2022-05-21 16:40:03 +01:00
parent 72e2b31629
commit b7abf4fa07

View File

@ -135,14 +135,6 @@ impl VoidBuilder {
} }
debug!("cloned child: {}", child); debug!("cloned child: {}", child);
// Leak the child function's resources in the parent process.
// This avoids closing files that have been "moved" into the child.
// It is also an over-approximation, and may cause actual memory leaks.
// As the spawning process is normally short lived, this shouldn't
// be a problem.
std::mem::forget(child_fn);
Ok(VoidHandle { pid: child }) Ok(VoidHandle { pid: child })
} }