unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* SIGIO and the NS port
@ 2017-03-10 12:41 Alan Third
  2017-03-10 13:35 ` Eli Zaretskii
  2017-03-13 16:38 ` Alan Third
  0 siblings, 2 replies; 6+ messages in thread
From: Alan Third @ 2017-03-10 12:41 UTC (permalink / raw)
  To: Emacs-Devel devel

I think I’ve just found a simple solution to a whole class of bugs in
the NS port.

We’ve had a number of bug reports where Emacs crashes while doing UI
related things, for example minimizing the frame, and generally we’ve
found the best way to deal with these is by wrapping the relevant bit
in block_input/unblock_input.

Today I discovered that config.h on my machine has two defines related
to SIGIO:

#define INTERRUPT_INPUT 1
#define USABLE_SIGIO 1

The NS port doesn’t use SIGIO to signal for input (I think it polls
using ns_select), and if I comment these two defines out I can remove
block_input/unblock_input from various places with no ill effects.

Does anyone know of any reason not to remove these two defines?

How would I go about doing that? I assume config.h is generated by
./configure, but I don’t know anything about that side of things.

Thanks!
-- 
Alan Third



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-05-21 12:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-10 12:41 SIGIO and the NS port Alan Third
2017-03-10 13:35 ` Eli Zaretskii
2017-03-13 16:38 ` Alan Third
2017-05-20 23:24   ` Alan Third
2017-05-21  7:46     ` Paul Eggert
2017-05-21 12:11       ` Alan Third

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).