HomePhabricator

[Host] File::GetWaitableHandle() should call fileno()

Description

[Host] File::GetWaitableHandle() should call fileno()

If the file has m_stream, it may not have a m_descriptor.
GetWaitableHandle() should call GetDescriptor(), which will call
fileno(), so it will get waitable descriptor whenever one is available.

Patch by: Lawrence D'Anna

Differential revision: https://reviews.llvm.org/D67789

Details

Committed
JDevlieghereSep 23 2019, 12:34 PM
Differential Revision
D67789: bugfix: File::GetWaitableHandle() should call fileno()
Branches
Unknown
Tags
Unknown