mirror of
https://github.com/golang/go
synced 2024-11-22 05:24:39 -07:00
runtime: disable epipe check for wasm platform
Pipe operation seems impossible for wasm build
This commit is contained in:
parent
807e01db48
commit
d7dc336271
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user