1
0
mirror of https://github.com/dutchcoders/transfer.sh.git synced 2020-11-18 19:53:40 -08:00
2019-03-17 20:19:56 +01:00

11 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) {
}