From 6c64f079fa4a80949e0721e112a77a771239752d Mon Sep 17 00:00:00 2001 From: Vexu <15308111+Vexu@users.noreply.github.com> Date: Sat, 23 Nov 2019 22:06:51 +0200 Subject: [PATCH] add workaround to child_process.zig --- lib/std/child_process.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/std/child_process.zig b/lib/std/child_process.zig index 680c378c0d..27ba362a18 100644 --- a/lib/std/child_process.zig +++ b/lib/std/child_process.zig @@ -259,7 +259,9 @@ pub const ChildProcess = struct { } fn handleWaitResult(self: *ChildProcess, status: u32) void { - self.term = self.cleanupAfterWait(status); + // TODO https://github.com/ziglang/zig/issues/3190 + var term = self.cleanupAfterWait(status); + self.term = term; } fn cleanupStreams(self: *ChildProcess) void {