fn childCleanup(ev: *Evented, child: *process.Child) void 4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836fn 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;
}