Commit d95f2a88 authored by Gerd Möllmann's avatar Gerd Möllmann
Browse files

ns_select fix for macOS terminals (bug#69561)

* src/nsterm.m (ns_select_1): Return early for terminals.
parent c5945e0f
Pipeline #28492 failed with stages
in 117 minutes and 13 seconds
......@@ -4757,8 +4757,12 @@ Function modeled after x_draw_glyph_string_box ().
if (writefds && FD_ISSET(k, writefds)) ++nr;
}
if (NSApp == nil
|| ![NSThread isMainThread]
/* emacs -nw doesn't have an NSApp, so we're done. */
if (NSApp == nil)
return thread_select (pselect, nfds, readfds, writefds, exceptfds,
timeout, sigmask);
if (![NSThread isMainThread]
|| (timeout && timeout->tv_sec == 0 && timeout->tv_nsec == 0))
thread_select (pselect, nfds, readfds, writefds,
exceptfds, timeout, sigmask);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment