From ca293a2e63083ad73b2ddbed87d86cade7015f1f Mon Sep 17 00:00:00 2001 From: Jody Klymak Date: Fri, 15 Dec 2023 22:18:57 -0800 Subject: [PATCH] Backport PR #27528: FIX: Remove runloop execution while waiting for stdin --- src/_macosx.m | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/_macosx.m b/src/_macosx.m index a580362f676f..d39f37063c9e 100755 --- a/src/_macosx.m +++ b/src/_macosx.m @@ -89,9 +89,6 @@ static int wait_for_stdin() { if (!event) { break; } [NSApp sendEvent: event]; } - // We need to run the run loop for a short time to allow the - // events to be processed and keep flushing them while we wait for stdin - [[NSRunLoop currentRunLoop] runUntilDate: [NSDate dateWithTimeIntervalSinceNow: 0.01]]; } // Remove the input handler as an observer [[NSNotificationCenter defaultCenter] removeObserver: stdinHandle];