fn childCleanup(ev: *Evented, child: *process.Child) void
fn childCleanup(ev: *Evented, child: *process.Child) void { if (child.stdin) |*stdin| { ev.closeAsync(stdin.handle); child.stdin = null; } if (child.stdout) |*stdout| { ev.closeAsync(stdout.handle); child.stdout = null; } if (child.stderr) |*stderr| { ev.closeAsync(stderr.handle); child.stderr = null; } child.id = null; }