# HG changeset patch # User Jaroslav Hajek # Date 1238355017 -7200 # Node ID eabdfcc977f138d5ca0a95e2f15f5b240672c2e8 # Parent 2da105bf2507729c5cccbfad3eeaf0d67dc20c14 make unwind_protect handle also keyboard interrupts diff -r 2da105bf2507 -r eabdfcc977f1 src/ChangeLog --- a/src/ChangeLog Sun Mar 29 18:09:44 2009 +0200 +++ b/src/ChangeLog Sun Mar 29 21:30:17 2009 +0200 @@ -1,3 +1,8 @@ +2009-03-29 Jaroslav Hajek + + * pt-eval.cc (do_unwind_protect_cleanup_code): Protect also + octave_interrupt_state. + 2009-03-29 Jaroslav Hajek * DLD-FUNCTIONS/cellfun.cc (Fcellslices): Index n-d arrays along the diff -r 2da105bf2507 -r eabdfcc977f1 src/pt-eval.cc --- a/src/pt-eval.cc Sun Mar 29 18:09:44 2009 +0200 +++ b/src/pt-eval.cc Sun Mar 29 21:30:17 2009 +0200 @@ -917,6 +917,9 @@ unwind_protect_int (error_state); error_state = 0; + unwind_protect_int (octave_interrupt_state); + octave_interrupt_state = 0; + // Similarly, if we have seen a return or break statement, allow all // the cleanup code to run before returning or handling the break. // We don't have to worry about continue statements because they can