emacs-devel
[Top][All Lists]
Advanced

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

Re: Catch arbitrary signal and throw it later in C


From: Po Lu
Subject: Re: Catch arbitrary signal and throw it later in C
Date: Fri, 14 Apr 2023 07:48:55 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

Yuan Fu <casouri@gmail.com> writes:

> Thanks, this is very clear and helpful. So the signal routine will
> unwind the pdl and run my cleanup function, right? And if no signal
> happens, my cleanup function is removed from the pdl by unbind_to.

The cleanup function is still run in that case.  If you don't want it to
be run, you have to call:

  clear_unwind_protect (count);

prior to calling `unbind_to'.


reply via email to

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