| ... | ... | @@ -217,13 +217,13 @@ pub const ChildProcess = struct { |
| 217 | 217 | |
| 218 | 218 | try child.spawn(); |
| 219 | 219 | |
| 220 | | var stdout_file_in_stream = child.stdout.?.inStream(); |
| 221 | | var stderr_file_in_stream = child.stderr.?.inStream(); |
| 220 | const stdout_in = child.stdout.?.inStream(); |
| 221 | const stderr_in = child.stderr.?.inStream(); |
| 222 | 222 | |
| 223 | 223 | // TODO need to poll to read these streams to prevent a deadlock (or rely on evented I/O). |
| 224 | | const stdout = try stdout_file_in_stream.readAllAlloc(args.allocator, args.max_output_bytes); |
| 224 | const stdout = try stdout_in.readAllAlloc(args.allocator, args.max_output_bytes); |
| 225 | 225 | errdefer args.allocator.free(stdout); |
| 226 | | const stderr = try stderr_file_in_stream.readAllAlloc(args.allocator, args.max_output_bytes); |
| 226 | const stderr = try stderr_in.readAllAlloc(args.allocator, args.max_output_bytes); |
| 227 | 227 | errdefer args.allocator.free(stderr); |
| 228 | 228 | |
| 229 | 229 | return ExecResult{ |
| ... | ... | @@ -780,7 +780,7 @@ fn windowsCreateCommandLine(allocator: *mem.Allocator, argv: []const []const u8) |
| 780 | 780 | var buf = try Buffer.initSize(allocator, 0); |
| 781 | 781 | defer buf.deinit(); |
| 782 | 782 | |
| 783 | | var buf_stream = &io.BufferOutStream.init(&buf).stream; |
| 783 | var buf_stream = buf.outStream(); |
| 784 | 784 | |
| 785 | 785 | for (argv) |arg, arg_i| { |
| 786 | 786 | if (arg_i != 0) try buf.appendByte(' '); |