all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#34618: 26.1.92; timerfd interface causes slowdown on Cygwin
@ 2019-02-22 15:08 Ken Brown
  2019-02-22 16:12 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Ken Brown @ 2019-02-22 15:08 UTC (permalink / raw)
  To: 34618

[-- Attachment #1: Type: text/plain, Size: 456 bytes --]

Starting with cygwin-3.0.0, Cygwin has the timerfd functions.  But using
them causes Emacs to be very slow to respond to user input.  If I press
a key, there is a 1-2 second delay before Emacs responds.  I'm in the
process of trying to debug this
(http://www.cygwin.org/ml/cygwin/2019-02/msg00364.html).  In the
meantime, the attached patch disables the use of these functions.

OK for the emacs-26 branch (after filling in the bug number)?

Ken

[-- Attachment #2: 0001-Disable-the-timerfd-interface-on-Cygwin.patch --]
[-- Type: text/plain, Size: 772 bytes --]

From c0025015ac30ae3c61388eb98f39f495926fe5d1 Mon Sep 17 00:00:00 2001
From: Ken Brown <kbrown@cornell.edu>
Date: Fri, 22 Feb 2019 09:53:52 -0500
Subject: [PATCH] Disable the timerfd interface on Cygwin

* configure.ac (emacs_cv_have_timerfd): Set to "no" on Cygwin.
---
 configure.ac | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index d5e802a961..0783b6455a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4145,6 +4145,10 @@ AC_DEFUN
 AC_SUBST(TERMCAP_OBJ)
 
 # GNU/Linux-specific timer functions.
+# Bug #?????.
+if test "$opsys" = "cygwin"; then
+  emacs_cv_have_timerfd=no
+fi
 AC_CACHE_CHECK([for timerfd interface], [emacs_cv_have_timerfd],
   [AC_COMPILE_IFELSE(
      [AC_LANG_PROGRAM([[#include <sys/timerfd.h>
-- 
2.17.0


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

end of thread, other threads:[~2019-03-10  3:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-22 15:08 bug#34618: 26.1.92; timerfd interface causes slowdown on Cygwin Ken Brown
2019-02-22 16:12 ` Eli Zaretskii
2019-02-22 16:15   ` Ken Brown
2019-03-09 19:27   ` Ken Brown
2019-03-09 19:42     ` Eli Zaretskii
2019-03-09 22:20       ` Ken Brown
2019-03-10  3:32         ` Eli Zaretskii

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.