diff src/toplev.cc @ 4429:c1f6200b5f0e

[project @ 2003-06-17 04:36:08 by jwe]
author jwe
date Tue, 17 Jun 2003 04:36:08 +0000
parents 286a3345aa8e
children 0bca8443db39
line wrap: on
line diff
--- a/src/toplev.cc
+++ b/src/toplev.cc
@@ -98,7 +98,6 @@
 static void
 recover_from_exception (void)
 {
-  unwind_protect::run_all ();
   can_interrupt = true;
   octave_interrupt_immediately = 0;
   octave_interrupt_state = 0;
@@ -126,6 +125,9 @@
 
   can_interrupt = true;
 
+  octave_interrupt_hook = unwind_protect::run_all;
+  octave_bad_alloc_hook = unwind_protect::run_all;
+
   octave_catch_interrupts ();
 
   octave_initialized = true;