ports/www/chromium/files/patch-base_process_internal__linux.cc
Carlos J. Puga Medina d90bf58cf8 www/chromium: Update to 73.0.3683.86
- Make existing patches apply cleanly

Changelog: https://chromium.googlesource.com/chromium/src/+log/72.0.3626.121..73.0.3683.86?pretty=fuller&n=10000

Submitted by:	Matthias Wolf
MFH:		2019Q2
2019-04-05 12:01:25 +00:00

16 lines
470 B
C++

--- base/process/internal_linux.cc.orig 2019-03-11 22:00:51 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();
}