octave-maintainers
[Top][All Lists]
Advanced

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

Re: Behavior of Ctrl+C with respect to unwind_protect_cleanup blocks


From: John W. Eaton
Subject: Re: Behavior of Ctrl+C with respect to unwind_protect_cleanup blocks
Date: Sat, 10 Jun 2017 10:04:59 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 06/10/2017 09:33 AM, Rik wrote:

Between versions 4.0 and 4.2 the behavior of unwind_protect blocks with
respect to Ctrl+C interrupts changed.  Previously, an interrupt was treated
the same as an error and the unwind_protect_cleanup block was executed.
Now, the interrupt is immediate and returns control to the command prompt
without taking any other actions.

I don't think any change like that was intentional. Do we know what changeset is responsible?

Is the behavior different for onCleanup objects? I think they should behave similarly, and both should run the cleanup actions on interrupt. They are intended to run those actions no matter how execution leaves the block (or scope).

jwe




reply via email to

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