[all-commits] [llvm/llvm-project] 267cc3: [lldb] [Python] Do not attempt to flush() a read-o...
Michał Górny via All-commits
all-commits at lists.llvm.org
Thu Oct 24 11:29:28 PDT 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 267cc3292ec4f6a7ea062b3551d20ea4692b6b78
https://github.com/llvm/llvm-project/commit/267cc3292ec4f6a7ea062b3551d20ea4692b6b78
Author: Michal Gorny <mgorny at gentoo.org>
Date: 2019-10-24 (Thu, 24 Oct 2019)
Changed paths:
M lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
Log Message:
-----------
[lldb] [Python] Do not attempt to flush() a read-only fd
Summary:
When creating a FileSP object, do not flush() the underlying file unless
it is open for writing. Attempting to flush() a read-only fd results
in EBADF on NetBSD.
Reviewers: lawrence_danna, labath, krytarowski
Reviewed By: lawrence_danna, labath
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D69320
More information about the All-commits
mailing list