Skip to content

Commit

Permalink
runtime: disable epipe check for wasm platform
Browse files Browse the repository at this point in the history
Pipe operation seems impossible for wasm build
  • Loading branch information
Zxilly committed Sep 22, 2024
1 parent 807e01d commit d7dc336
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/runtime/os_wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d7dc336

Please sign in to comment.