mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2025-01-15 21:20:19 +01:00
11 lines
258 B
Go
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) {
|
||
|
}
|