mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-04 02:37:50 +08:00
6ced40733c
The syscall package exposes an EPIPE on Windows, but it's not what Windows APIs return. The error number 232 is what is semantically EPIPE.
11 lines
350 B
Go
11 lines
350 B
Go
package eval
|
|
|
|
import "syscall"
|
|
|
|
// Error number 232 is what Windows returns when trying to write on a pipe who
|
|
// reader has gone. The syscall package defines an EPIPE on Windows, but that's
|
|
// not what Windows API actually returns.
|
|
//
|
|
// https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-
|
|
var epipe = syscall.Errno(232)
|