transfer.sh/vendor/github.com/google/martian/nosigpipe/nosigpipe.go
2019-03-17 20:19:56 +01:00

10 lines
258 B
Go

//+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) {
}