Source file src/internal/testenv/testenv_notunix.go
1 // Copyright 2021 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build windows || plan9 || (js && wasm) || wasip1 6 7 package testenv 8 9 import ( 10 "errors" 11 "io/fs" 12 "os" 13 ) 14 15 // Sigquit is the signal to send to kill a hanging subprocess. 16 // On Unix we send SIGQUIT, but on non-Unix we only have os.Kill. 17 var Sigquit = os.Kill 18 19 func syscallIsNotSupported(err error) bool { 20 return errors.Is(err, fs.ErrPermission) || errors.Is(err, errors.ErrUnsupported) 21 } 22