From: Lars Ingebrigtsen Date: Mon, 25 Oct 2021 14:49:48 +0000 (+0200) Subject: Heed the EMACS_IGNORE_TIMERFD environment variable X-Git-Tag: emacs-29.0.90~3671^2~421 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8c73e6b0f9acd315a946e01ceb82f86a70b1aeac;p=emacs.git 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. --- 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