From 7ce7f08a87079ff4827fc633f8c2d1a46c768633 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Tue, 12 Sep 2023 04:52:51 -0700 Subject: [PATCH] != 0 --- src/bun.js/api/bun/subprocess.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bun.js/api/bun/subprocess.zig b/src/bun.js/api/bun/subprocess.zig index 17c453cba60790..5695c15ad6a0af 100644 --- a/src/bun.js/api/bun/subprocess.zig +++ b/src/bun.js/api/bun/subprocess.zig @@ -1718,7 +1718,7 @@ pub const Subprocess = struct { this.waitpid_err = err; }, .result => |result| { - if (result.pid == pid) { + if (result.pid != 0) { if (std.os.W.IFEXITED(result.status)) { this.exit_code = @as(u8, @truncate(std.os.W.EXITSTATUS(result.status))); }