diff options
author | Michal Gorny <mgorny@gentoo.org> | 2019-10-23 06:17:25 -0700 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2019-10-24 11:29:00 -0700 |
commit | 267cc3292ec4f6a7ea062b3551d20ea4692b6b78 (patch) | |
tree | fbe33afd6b14dcde912529da57986c76b0702368 /clang/unittests/Basic/SourceManagerTest.cpp | |
parent | ec66603ac7ea655be5c2c5f508c5bf0d5eaeb65b (diff) | |
download | llvm-267cc3292ec4f6a7ea062b3551d20ea4692b6b78.zip llvm-267cc3292ec4f6a7ea062b3551d20ea4692b6b78.tar.gz llvm-267cc3292ec4f6a7ea062b3551d20ea4692b6b78.tar.bz2 |
[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
Diffstat (limited to 'clang/unittests/Basic/SourceManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions