1
0
mirror of https://github.com/golang/go synced 2024-11-25 00:07:56 -07:00

runtime: disable epipe check for wasm platform

Pipe operation seems impossible for wasm build

Fixes #59099

Change-Id: Ibb526693dce4e867dabd92e5ace38a1adf18f401
GitHub-Last-Rev: d7dc336271
GitHub-Pull-Request: golang/go#69583
Reviewed-on: https://go-review.googlesource.com/c/go/+/614935
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
This commit is contained in:
Zxilly 2024-09-22 19:04:36 +00:00 committed by Gopher Robot
parent 944a2ac3c7
commit d39b366841

View File

@ -109,10 +109,10 @@ func newosproc(mp *m) {
throw("newosproc: not implemented")
}
// Do nothing on WASM platform, always return EPIPE to caller.
//
//go:linkname os_sigpipe os.sigpipe
func os_sigpipe() {
throw("too many writes on closed pipe")
}
func os_sigpipe() {}
//go:linkname syscall_now syscall.now
func syscall_now() (sec int64, nsec int32) {