diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-02-27 20:42:13 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-02-27 20:42:13 -0700 |
| commit | f33af7af40faccc05f66417f1ba5caa4eb158769 (patch) | |
| tree | ad6a3924010d283d998d47f1f4a6a5510d129076 | |
| parent | f6c934677315665c140151b8dd28a56f948205e2 (diff) | |
| download | zig-f33af7af40faccc05f66417f1ba5caa4eb158769.tar.gz zig-f33af7af40faccc05f66417f1ba5caa4eb158769.zip | |
delete a subtly incorrect Haiku collectOutput implementation
It's not OK to half-ass this function. Please implement it correctly, or
not at all.
| -rw-r--r-- | lib/std/child_process.zig | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/std/child_process.zig b/lib/std/child_process.zig index c3bd53b880..55e375b93b 100644 --- a/lib/std/child_process.zig +++ b/lib/std/child_process.zig @@ -210,13 +210,7 @@ pub const ChildProcess = struct { ) !void { debug.assert(child.stdout_behavior == .Pipe); debug.assert(child.stderr_behavior == .Pipe); - if (builtin.os.tag == .haiku) { - const stdout_in = child.stdout.?.reader(); - const stderr_in = child.stderr.?.reader(); - - try stdout_in.readAllArrayList(stdout, max_output_bytes); - try stderr_in.readAllArrayList(stderr, max_output_bytes); - } else if (builtin.os.tag == .windows) { + if (builtin.os.tag == .windows) { try collectOutputWindows(child, stdout, stderr, max_output_bytes); } else { try collectOutputPosix(child, stdout, stderr, max_output_bytes); |
