From 504f9b6c85be00427305ffa9afcc609e4ea2556b Mon Sep 17 00:00:00 2001 From: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Mon, 2 Jun 2025 10:53:50 +0000 Subject: [PATCH] `bun run clang-format` --- src/io/io_darwin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/io/io_darwin.cpp b/src/io/io_darwin.cpp index 9090dc0f9e..5ddef91230 100644 --- a/src/io/io_darwin.cpp +++ b/src/io/io_darwin.cpp @@ -196,17 +196,17 @@ extern "C" bool darwin_select_thread_is_needed_for_fd(int fd) if (test_kqueue == -1) { return true; // If kqueue fails, definitely need select fallback } - + struct kevent64_s event = {}; event.ident = fd; event.filter = EVFILT_READ; event.flags = EV_ADD | EV_ENABLE; - + // Try to register fd with kqueue int result = kevent64(test_kqueue, &event, 1, NULL, 0, 0, NULL); bool needs_fallback = (result == -1); close(test_kqueue); - + // If kevent fails for stdin, we need the select fallback return needs_fallback; }