Fortran: Use OpenACC's acc_on_device builtin, fix OpenMP' __builtin_is_initial_device
[official-gcc.git] / libgo / go / os / exec / exec_unix.go
blobc20f35276c66fb6fc42809aa79aff4a970007cc5
1 // Copyright 2015 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.
5 //go:build !plan9 && !windows
7 package exec
9 import (
10 "io/fs"
11 "syscall"
14 func init() {
15 skipStdinCopyError = func(err error) bool {
16 // Ignore EPIPE errors copying to stdin if the program
17 // completed successfully otherwise.
18 // See Issue 9173.
19 pe, ok := err.(*fs.PathError)
20 return ok &&
21 pe.Op == "write" && pe.Path == "|1" &&
22 pe.Err == syscall.EPIPE