github.com/gop9/olt@v0.0.0-20200202132135-d956aad50b08/gio/app/sigpipe_darwin.go (about) 1 // SPDX-License-Identifier: Unlicense OR MIT 2 3 // +build !go1.14 4 5 // Work around golang.org/issue/33384, fixed in CL 191785, 6 // to be released in Go 1.14. 7 8 package app 9 10 import ( 11 "os" 12 "os/signal" 13 "syscall" 14 ) 15 16 func init() { 17 signal.Notify(make(chan os.Signal), syscall.SIGPIPE) 18 }