emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hang in make check


From: Eli Zaretskii
Subject: Re: Hang in make check
Date: Tue, 30 Mar 2021 16:46:25 +0300

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: noloader@gmail.com,  emacs-devel@gnu.org
> Date: Tue, 30 Mar 2021 15:29:33 +0200
> 
> The test code snippet that's actually hanging is this:
> 
> (should (equal (progn (run-with-timer
>                        1 nil
>                        (lambda () (push '(t . ?\C-b) unread-command-events)))
>                       (read-event nil nil 2))
>                ?\C-b))
> 
> So the `read-event' hangs indefinitely, and then apparently never
> discovers that the run-with-timer has pushed something unto
> unread-command-events (because it's in that getchar?), I think.

Yes.  It's actually worse: _because_ the getchar call hangs, Emacs
doesn't get to running the timer function at all.

So I think the code needs to be modified, or maybe simply disabled
when system-configuration-features includes neither DBUS nor NOTIFY
nor THREADS.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]