Skip to content

Commit

Permalink
!= 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Sep 12, 2023
1 parent 8aa6bb0 commit 7ce7f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bun.js/api/bun/subprocess.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}
Expand Down

0 comments on commit 7ce7f08

Please sign in to comment.