15 lines
653 B
Plaintext
15 lines
653 B
Plaintext
$OpenBSD: patch-base_files_scoped_file_cc,v 1.1 2020/04/02 15:11:56 robert Exp $
|
|
|
|
Index: base/files/scoped_file.cc
|
|
--- base/files/scoped_file.cc.orig
|
|
+++ base/files/scoped_file.cc
|
|
@@ -31,7 +31,7 @@ void ScopedFDCloseTraits::Free(int fd) {
|
|
int ret = IGNORE_EINTR(close(fd));
|
|
|
|
#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_FUCHSIA) || \
|
|
- defined(OS_ANDROID)
|
|
+ defined(OS_ANDROID) || defined(OS_BSD)
|
|
// NB: Some file descriptors can return errors from close() e.g. network
|
|
// filesystems such as NFS and Linux input devices. On Linux, macOS, and
|
|
// Fuchsia's POSIX layer, errors from close other than EBADF do not indicate
|