summaryrefslogtreecommitdiff
path: root/devel/electron7/files/patch-base_process_internal__linux.cc
blob: 70ed99e68b10ca743fbddd0eaaf541cd31fc33bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- base/process/internal_linux.cc.orig	2019-12-12 12:38:59 UTC
+++ base/process/internal_linux.cc
@@ -60,10 +60,13 @@ bool ReadProcFile(const FilePath& file, std::string* b
   // Synchronously reading files in /proc is safe.
   ThreadRestrictions::ScopedAllowIO allow_io;
 
+#if !defined(OS_BSD)
   if (!ReadFileToString(file, buffer)) {
     DLOG(WARNING) << "Failed to read " << file.MaybeAsASCII();
     return false;
   }
+#endif
+
   return !buffer->empty();
 }