Skip to content

Commit d39b366

Browse files
Zxillygopherbot
authored andcommitted
runtime: disable epipe check for wasm platform
Pipe operation seems impossible for wasm build Fixes #59099 Change-Id: Ibb526693dce4e867dabd92e5ace38a1adf18f401 GitHub-Last-Rev: d7dc336 GitHub-Pull-Request: #69583 Reviewed-on: https://go-review.googlesource.com/c/go/+/614935 LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: David Chase <[email protected]>
1 parent 944a2ac commit d39b366

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/runtime/os_wasm.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ func newosproc(mp *m) {
109109
throw("newosproc: not implemented")
110110
}
111111

112+
// Do nothing on WASM platform, always return EPIPE to caller.
113+
//
112114
//go:linkname os_sigpipe os.sigpipe
113-
func os_sigpipe() {
114-
throw("too many writes on closed pipe")
115-
}
115+
func os_sigpipe() {}
116116

117117
//go:linkname syscall_now syscall.now
118118
func syscall_now() (sec int64, nsec int32) {

0 commit comments

Comments
 (0)