Skip to content

Commit

Permalink
jsc/wasm32/wasm32.jsc: set initial pid
Browse files Browse the repository at this point in the history
  • Loading branch information
pipcet committed Feb 1, 2021
1 parent 9e7dd03 commit 07af839
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jsc/wasm32/wasm32.jsc
Original file line number Diff line number Diff line change
Expand Up @@ -1651,6 +1651,7 @@ Wasm32Kernel.prototype.init_port = function (thread)
this.ppids[1] = 1;
this.threads_by_port.set(channel.port1, thread);
this.threads_by_port.set(channel.port2, thread);
thread.pid = 1;

return channel.port2;
}
Expand Down

0 comments on commit 07af839

Please sign in to comment.