1 // Copyright 2019 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.
12 const errFileNotFound = syscall.ENOENT
14 // isEphemeralError returns true if err may be resolved by waiting.
15 func isEphemeralError(err error) bool {
16 switch werr := err.(type) {
21 case *os.SyscallError:
25 if errno, ok := err.(syscall.Errno); ok {
26 return errno == errFileNotFound