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 = null;
const stdout_bytes = try process.stdout.?.reader().readAllAlloc(allocator, std.math.maxInt(usize));
defer allocator.free(stdout_bytes);
// TODO readAllAlloc degfaults with the page allocator
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()) {
.Exited => |code| if (code == 0) {