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 var errno syscall.Errno
17 if errors.As(err, &errno) {
18 return errno == errFileNotFound