github.com/markusbkk/elvish@v0.0.0-20231204143114-91dc52438621/pkg/eval/external_cmd_unix.go (about)

     1  //go:build !windows && !plan9 && !js
     2  // +build !windows,!plan9,!js
     3  
     4  package eval
     5  
     6  import "syscall"
     7  
     8  func isSIGPIPE(s syscall.Signal) bool {
     9  	return s == syscall.SIGPIPE
    10  }