Mercurial > hg > octave-nkf
changeset 1394:a45089a6ea41
[project @ 1995-09-14 19:00:24 by jwe]
author | jwe |
---|---|
date | Thu, 14 Sep 1995 19:00:24 +0000 |
parents | a771d1785c2a |
children | b6fe9503c6e1 |
files | src/sighandlers.cc |
diffstat | 1 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sighandlers.cc +++ b/src/sighandlers.cc @@ -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) {