tpl/internal/go_templates/testenv/testenv_unix.go
raw| 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 unix |
| 6 | |
| 7 | package testenv |
| 8 | |
| 9 | import ( |
| 10 | "syscall" |
| 11 | ) |
| 12 | |
| 13 | // Sigquit is the signal to send to kill a hanging subprocess. |
| 14 | // Send SIGQUIT to get a stack trace. |
| 15 | var Sigquit = syscall.SIGQUIT |
| 16 | |
| 17 | func syscallIsNotSupported(err error) bool { |
| 18 | if err == nil { |
| 19 | return false |
| 20 | } |
| 21 | |
| 22 | return false |
| 23 | } |