mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
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:
parent
60eabc0eca
commit
7221e9560e
@ -866,9 +866,9 @@ fn spawnChildAndCollect(
|
|||||||
child.request_resource_usage_statistics = true;
|
child.request_resource_usage_statistics = true;
|
||||||
|
|
||||||
child.stdin_behavior = switch (self.stdio) {
|
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,
|
.inherit => .Inherit,
|
||||||
.check => .Close,
|
.check => .Ignore,
|
||||||
.zig_test => .Pipe,
|
.zig_test => .Pipe,
|
||||||
};
|
};
|
||||||
child.stdout_behavior = switch (self.stdio) {
|
child.stdout_behavior = switch (self.stdio) {
|
||||||
|
Loading…
Reference in New Issue
Block a user