>From 6b4787023b247b68ae0598d03dce50a6fce44ab1 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Fri, 10 Mar 2017 14:21:14 +0000 Subject: [PATCH] Disable SIGIO processing on NS port * src/conf_post.h: undef USABLE_SIGIO and INTERRUPT_INPUT. * src/nsterm.m (hold_event, ns_select): Remove unneeded calls to raise SIGIO. --- src/conf_post.h | 6 ++++++ src/nsterm.m | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/conf_post.h b/src/conf_post.h index e146b9bbe8..3b6b9aff8d 100644 --- a/src/conf_post.h +++ b/src/conf_post.h @@ -355,3 +355,9 @@ extern int emacs_setenv_TZ (char const *); #else # define UNINIT /* empty */ #endif + +/* The NS port doesn't use SIGIO for input. */ +#ifdef HAVE_NS +# undef USABLE_SIGIO +# undef INTERRUPT_INPUT +#endif diff --git a/src/nsterm.m b/src/nsterm.m index f985786e19..d61d357811 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -454,8 +454,6 @@ - (NSColor *)colorUsingDefaultColorSpace } hold_event_q.q[hold_event_q.nr++] = *event; - /* Make sure ns_read_socket is called, i.e. we have input. */ - raise (SIGIO); send_appdefined = YES; } @@ -4120,7 +4118,6 @@ in certain situations (rapid incoming events). if (hold_event_q.nr > 0) { /* We already have events pending. */ - raise (SIGIO); errno = EINTR; return -1; } -- 2.12.0