fn childCleanupPosix(child: *process.Child) void
fn childCleanupPosix(child: *process.Child) void { if (child.stdin) |stdin| { closeFd(stdin.handle); child.stdin = null; } if (child.stdout) |stdout| { closeFd(stdout.handle); child.stdout = null; } if (child.stderr) |stderr| { closeFd(stderr.handle); child.stderr = null; } child.id = null; }