transfer.sh/vendor/github.com/google/martian/nosigpipe/nosigpipe.go

11 lines
258 B
Go
Raw Normal View History

2019-03-17 20:19:56 +01:00
//+build !darwin !go1.9
package nosigpipe
import "net"
// IgnoreSIGPIPE prevents SIGPIPE from being raised on TCP sockets when remote hangs up
// See: https://github.com/golang/go/issues/17393. Do nothing for non Darwin
func IgnoreSIGPIPE(c net.Conn) {
}