sigpipe_darwin.go raw

   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  }
  19