bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#64819: 30.0.50; condition-wait not interruptible


From: Helmut Eller
Subject: bug#64819: 30.0.50; condition-wait not interruptible
Date: Sun, 03 Sep 2023 21:53:21 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

On Sat, Sep 02 2023, Stefan Kangas wrote:

> Did you get any further with this?

Well, a bit.  I'm currently using the attached patch and for testing the
attached shell script.  The patch is good enough to pass these tests.  I
don't know if it breaks something else.

I had to change maybe_reacquire_global_lock to make the tests pass.  The
idea behind maybe_reacquire_global_lock seems dubious: waiting for a
lock in a signal handler seems, well, problematic.

Anyway, the patch is work in progress and only useful to me.

(The patch also includes changes for Windows, but I only tested those
manually and under Wine.  For the Windows console version, C-g doesn't
interrupt condition-wait.  Ordinary endless loops don't seem be
interruptible there either.  So, maybe this is acceptable.)

Helmut

Attachment: interruptible-condition-wait.patch
Description: Text Data

Attachment: cnd-wait-test.sh
Description: Text Data

Attachment: wait.el
Description: Text document


reply via email to

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