Skip to content

Commit

Permalink
jsc/wasm32/wasm32.jsc: exit with the right status
Browse files Browse the repository at this point in the history
  • Loading branch information
pipcet committed Feb 3, 2021
1 parent 3e3e6e4 commit ff7ef06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsc/wasm32/wasm32.jsc
Original file line number Diff line number Diff line change
Expand Up @@ -5249,7 +5249,7 @@ if (typeof(os) !== "undefined" &&
let o = os.waitpid(pid);
let output = os.file.readFile("/tmp/tmp.out." + timestamp, "binary");
let ret = this.fds[1].write(output, 0, output.length);
return this.kport.req("exit", [0]);
return this.kport.req("exit", [o.exitStatus]);
} catch (e) {
console.log("OH NO!");
console.log(e);
Expand Down

0 comments on commit ff7ef06

Please sign in to comment.