Differential D18757 Diff 55415 www/qt5-webengine/files/patch-src_3rdparty_chromium_base_process_internal__linux.cc
Changeset View
Changeset View
Standalone View
Standalone View
www/qt5-webengine/files/patch-src_3rdparty_chromium_base_process_internal__linux.cc
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- src/3rdparty/chromium/base/process/internal_linux.cc.orig 2018-11-13 18:25:11 UTC | |||||
+++ src/3rdparty/chromium/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(); | |||||
} | |||||