Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

Fix busy loop in various IO functions on some platforms

Compare
Choose a tag to compare
@fredemmott fredemmott released this 20 Feb 21:38
· 1 commit to v4.0.x since this release
Don't include STREAM_AWAIT_ERROR in stream_await call

Summary:
STREAM_AWAIT_ERROR is a return code, not an event type.

This is fine on some Linux systems, but on others and MacOS it returns instantly, leading to busy loops.

This API isn't as typed as we'd like as it's older than enums. Being replaced
with HSL IO.

Reviewed By: alexeyt

Differential Revision: D14142241

fbshipit-source-id: d5f9be7b5e68893fde113473c6a5d9adf2394abf