This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [Python] Do not attempt to flush() a read-only fd
ClosedPublic

Authored by mgorny on Oct 22 2019, 12:52 PM.

Details

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.

Diff Detail

Event Timeline

mgorny created this revision.Oct 22 2019, 12:52 PM
This revision is now accepted and ready to land.Oct 22 2019, 12:59 PM

Could you push this for me? It seems that I have missed the GitHub migration and I didn't get commit access to the new repository.

Could you push this for me? It seems that I have missed the GitHub migration and I didn't get commit access to the new repository.

looks like i've got the same problem

Same here, I cannot commit.

labath accepted this revision.Oct 22 2019, 10:50 PM

@labath, can you commit to the new repo by any chance? ;-)

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 24 2019, 11:32 AM