-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
syscall/js: add support for fork/exec syscalls? #37100
Comments
With the current That being said, I think that the general solution to this problem would be to support |
Fork is a very difficult syscall. I don't see an easy way to support it with Node.js. It is unlikely that I will work on this. Maybe someone else wants to try... |
Change https://golang.org/cl/260717 mentions this issue: |
The js port does not yet support os/exec. Updates golang/go#37100 Updates golang/go#33519 Change-Id: I9608b7febfdc274dc1b9f34a92d00ef7bea4e13c Reviewed-on: https://go-review.googlesource.com/c/sync/+/260717 Trust: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
The js port does not yet support os/exec. Updates golang/go#37100 Updates golang/go#33519 Change-Id: I9608b7febfdc274dc1b9f34a92d00ef7bea4e13c Reviewed-on: https://go-review.googlesource.com/c/sync/+/260717 Trust: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
The js port does not yet support os/exec. Updates golang/go#37100 Updates golang/go#33519 Change-Id: I9608b7febfdc274dc1b9f34a92d00ef7bea4e13c Reviewed-on: https://go-review.googlesource.com/c/sync/+/260717 Trust: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
What did you see instead?
As some folks on Slack kindly pointed out, this is because
GOOS=js ARCH=wasm
does not support fork/exec syscalls. Those same folks were not clear that it made sense for this to be supported (especially given the browser focus of this port), but when executing through NodeJS (i.e. thego_js_wasm_exec
wrapper) it does have meaning.Thoughts?
cc @neelance
The text was updated successfully, but these errors were encountered: