[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Interrupting computations using signals
From: |
Eli Zaretskii |
Subject: |
Re: Interrupting computations using signals |
Date: |
Mon, 24 May 2021 15:53:53 +0300 |
> From: Daniel Mendler <mail@daniel-mendler.de>
> Date: Mon, 24 May 2021 14:32:05 +0200
>
> If Emacs is running in GUI mode, I can interrupt computations by
> pressing `C-g` (keyboard-quit). Is there also a possibility to submit
> such an interrupt from outside, via signals or via another mechanism?
Yes, read about sigusr1 and sigusr2 in the ELisp manual.
> I've read something in the manual about SIGUSR1/SIGUSR2 but I could not
> get these handlers to work in an Emacs running in daemon or batch mode.
Show us the code.