std.Build.RunStep: don't close stdin

Instead, ignore stdin. Otherwise this interfers with a sub-process which
expects to have a stdin file descriptor open.
This commit is contained in:
Andrew Kelley 2023-04-10 18:33:54 -07:00
parent 60eabc0eca
commit 7221e9560e

View File

@ -866,9 +866,9 @@ fn spawnChildAndCollect(
child.request_resource_usage_statistics = true;
child.stdin_behavior = switch (self.stdio) {
.infer_from_args => if (has_side_effects) .Inherit else .Close,
.infer_from_args => if (has_side_effects) .Inherit else .Ignore,
.inherit => .Inherit,
.check => .Close,
.check => .Ignore,
.zig_test => .Pipe,
};
child.stdout_behavior = switch (self.stdio) {