# HG changeset patch # User jwe # Date 811105224 0 # Node ID a45089a6ea412deb2939a9c67570ab458ef89647 # Parent a771d1785c2a3f1f2fbf8ca737668d0a9ce19c76 [project @ 1995-09-14 19:00:24 by jwe] diff -r a771d1785c2a -r a45089a6ea41 src/sighandlers.cc --- a/src/sighandlers.cc Thu Sep 14 09:36:42 1995 +0000 +++ b/src/sighandlers.cc Thu Sep 14 19:00:24 1995 +0000 @@ -64,8 +64,15 @@ static void octave_new_handler (void) { - error ("new: virtual memory exhausted -- stopping myself"); - clean_up_and_exit (1); + error ("memory exhausted -- trying to return to prompt"); + + if (can_interrupt) + { + jump_to_top_level (); + panic_impossible (); + } + else + clean_up_and_exit (1); } static RETSIGTYPE @@ -130,7 +137,7 @@ signal (SIGFPE, sigfpe_handler); - error ("floating point exception -- trying to continue"); + error ("floating point exception -- trying to return to prompt"); if (can_interrupt) {