Augustin Cavalier 5f5ce32efc libbsd: Fix kqueue reporting errors when selection fails.
We shouldn't proceed to "wait" if we got errors back from "select",
but should just return the count of errors-reported-as-events
directly, or return the status if we can't report them that way.

Fixes libevent kqueue backend hanging forever on startup.
(cherry picked from commit 380ed24e115ca3169ca718412b3ddd3728fdda8d)

Change-Id: Ia725c74219139199db2dd8cf0dc29337bb97c4f8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8019
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-08-12 19:59:58 +00:00
..
2024-08-08 01:17:02 +00:00