From 8c73e6b0f9acd315a946e01ceb82f86a70b1aeac Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 25 Oct 2021 16:49:48 +0200 Subject: [PATCH] Heed the EMACS_IGNORE_TIMERFD environment variable * src/emacs.c (main): Call init_atimer after setting up the environment so that the EMACS_IGNORE_TIMERFD environment variable is actually heeded. --- src/emacs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/emacs.c b/src/emacs.c index a24543a5862..032b27fcf3c 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1872,7 +1872,6 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem init_bignum (); init_threads (); init_eval (); - init_atimer (); running_asynch_code = 0; init_random (); @@ -2034,6 +2033,9 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem if (!will_dump_p ()) set_initial_environment (); + /* Has to run after the environment is set up. */ + init_atimer (); + #ifdef WINDOWSNT globals_of_w32 (); #ifdef HAVE_W32NOTIFY -- 2.39.5