Subject: bug#16988: 24.3.50; emacs -nw -Q --eval '(kill-emacs)' takes 2 seconds unless I hit a key

From: Nicolas Richard <[email-masked]>
Date: Tue, 11 Mar 2014 16:22:21 +0100

With latest trunk:
$ time src/emacs -nw -Q --eval '(kill-emacs)'

real	0m2.064s
user	0m0.030s
sys	0m0.010s

If however I hit a key, emacs exits immediately.

with 24.3 (git commit 3a1ce0685) :
$ time src/emacs -nw -Q --eval '(kill-emacs)'

real	0m0.063s
user	0m0.030s
sys	0m0.012s

The '--eval' part is just there to make emacs exit asap.

Note that replacing -Q with --batch works fine.

-- 
Nico.