Fixed formatting on master

This commit is contained in:
Alexandros Naskos 2020-06-28 16:16:41 +03:00
parent 3be74cbdc5
commit 0102963433

View File

@ -1349,8 +1349,11 @@ fn processJsonRpc(parser: *std.json.Parser, json: []const u8, config: Config, ke
process.stdin.?.close(); process.stdin.?.close();
process.stdin = null; process.stdin = null;
const stdout_bytes = try process.stdout.?.reader().readAllAlloc(allocator, std.math.maxInt(usize)); // TODO readAllAlloc degfaults with the page allocator
defer allocator.free(stdout_bytes); var arena = std.heap.ArenaAllocator.init(allocator);
defer arena.deinit();
const stdout_bytes = try process.stdout.?.reader().readAllAlloc(&arena.allocator, std.math.maxInt(usize));
// defer allocator.free(stdout_bytes);
switch (try process.wait()) { switch (try process.wait()) {
.Exited => |code| if (code == 0) { .Exited => |code| if (code == 0) {